 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
DeeDub Guest
|
Posted: Tue Aug 29, 2006 12:21 am Post subject: Question about string literals |
|
|
This may be a simple question, but let's say you have a string declared
like this:
myString: string[20];
How can you determine the "size" of the string prior to assigning
anything to it? In other words, in this case, how can I determine (in
code) that myString has a max length of 20?
Thanks |
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Tue Aug 29, 2006 1:47 am Post subject: Re: Question about string literals |
|
|
Use sizeof()
Beside this, you need to be aware that this news group do not officially
exist. For further questions about your problem post in
b.p.d.language.delphi.general, and when you do so you need to post on the
Borland news server.
How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups> |
|
| Back to top |
|
 |
DeeDub Guest
|
Posted: Tue Aug 29, 2006 2:22 am Post subject: Re: Question about string literals |
|
|
Thanks, I'll do that now. There is a problem I'm having with your
suggestion (sizeof), so I will post your comments as well.
Riki Wiki wrote:
| Quote: | Use sizeof()
Beside this, you need to be aware that this news group do not officially
exist. For further questions about your problem post in
b.p.d.language.delphi.general, and when you do so you need to post on the
Borland news server.
How to post to Delphi newsgroups:
http://delphi.wikia.com/wiki/Delphi_Newsgroups |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|