Page 1 of 1 1
Topic Options
#42806 - 2003-07-14 06:39 PM Trouble with Arrays
Lloyd Offline
Lurker

Registered: 2003-07-14
Posts: 2
Loc: Boston, MA
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!

Top
#42807 - 2003-07-14 06:41 PM Re: Trouble with Arrays
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
code:
$first=left(@USERID,1)

See also RIGHT/SUBSTR in the KiXtart Manual.
_________________________
There are two types of vessels, submarines and targets.

Top
#42808 - 2003-07-14 06:46 PM Re: Trouble with Arrays
Lloyd Offline
Lurker

Registered: 2003-07-14
Posts: 2
Loc: Boston, MA
Thanks a lot! Works great [Wink]
Top
#42809 - 2003-07-14 07:02 PM Re: Trouble with Arrays
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.052 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org