Lloyd
(Lurker)
2003-07-14 06:39 PM
Trouble with Arrays

Is it possible to take a string, and have each letter in the string be placed into an array? I'm not sure how to do this since there is no delimiter. Is there another way to do this? Basically I am just trying to extract the first letter from a users name.

Thanks!


Sealeopard
(KiX Master)
2003-07-14 06:41 PM
Re: Trouble with Arrays

code:
$first=left(@USERID,1)

See also RIGHT/SUBSTR in the KiXtart Manual.


Lloyd
(Lurker)
2003-07-14 06:46 PM
Re: Trouble with Arrays

Thanks a lot! Works great [Wink]

LonkeroAdministrator
(KiX Master Guru)
2003-07-14 07:02 PM
Re: Trouble with Arrays

now what was the array talk? [Wink]
array can be many thinks...

kixtart array can as example an array of strings.
a string itself...
it's an array of 32000 characters.

anyway, as you are not posting in starters, I will not continue this talk [Big Grin]

hope you find out time to study a little.
sadly we don't have proper reference for anything but gladly we have ppl who still knows the basic things. [Smile]