Changing a Word into an array of Strings
Harry1
Posts: 29
So right now i have variable. which is a Word, and i wish to change it into an array of Strings in a way shown below
START
Word car := "car"
END
str[noparse][[/noparse]0] := "c"
str[noparse][[/noparse]1] := "a"
str[noparse][[/noparse]2] := "r"
Is this even possible, and if so how would i go about doing this. Any help will appreciated
Thanks ^^
·
START
Word car := "car"
END
str[noparse][[/noparse]0] := "c"
str[noparse][[/noparse]1] := "a"
str[noparse][[/noparse]2] := "r"
Is this even possible, and if so how would i go about doing this. Any help will appreciated
Thanks ^^
·
Comments
I'm not sure exactly what you are wanting to do. When you define a string it essentially is already stored as an array. You can use the byte modifier
to read or change individual characters.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 11/8/2006 10:43:29 PM GMT
that was really helpful and it works [noparse]:)[/noparse]