DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

changing string into array

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
mac1234mac
Member
Member


Joined: 24 Jul 2008
Posts: 3

PostPosted: 3 Days ago    Post subject: changing string into array Reply with quote

Hello,

I have following string:

'abcd -9.456 on'

I'd like to divide this string into array of symbols so, for example, first element of my array would
be: a[0] := a, second a[1] := b etc. How can I do it in Delphi 7.0?.

Cheers.
Back to top
View user's profile Send private message
Kambiz
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 1585
Location: Tehran, Iran

PostPosted: 3 Days ago    Post subject: Reply with quote

You can index a string variable just as you would an array.

Index of the first character is 1, the second is 2, and so on.
_________________
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT - 12 Hours
Page 1 of 1

Add to favorites

 
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group