BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question about string literals

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
DeeDub
Guest





PostPosted: Tue Aug 29, 2006 12:21 am    Post subject: Question about string literals Reply with quote



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





PostPosted: Tue Aug 29, 2006 1:47 am    Post subject: Re: Question about string literals Reply with 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
DeeDub
Guest





PostPosted: Tue Aug 29, 2006 2:22 am    Post subject: Re: Question about string literals Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.