Something like:
Code: Select all
string.s="Sample string"
dim array.c (0)
array=@string
debug array(5) ;displays an "e"
for i.l=8 to 3 step -1 ;displays "ts elp"
debug array(i)
next i
Code: Select all
string.s="Sample string"
dim array.c (0)
array=@string
debug array(5) ;displays an "e"
for i.l=8 to 3 step -1 ;displays "ts elp"
debug array(i)
next i
Code: Select all
Structure CString
StructureUnion
str.s{99}
chr.c[99]
EndStructureUnion
EndStructure
test.CString\str = "Sample string"
Debug Chr(test\chr[5]) ;displays an "e"
For i.l=8 To 3 Step -1 ;displays "ts elp"
Debug Chr(test\chr[i])
Next i
Code: Select all
string.s="Sample string"
dim array.s{1}(0)
array()=@string
debug array(5) ;displays an "e"
for i.l=8 To 3 Step -1 ;displays "ts elp"
debug array(i)
next i
Code: Select all
Structure S2
s.c[0]
EndStructure
MyString.s = "Jackdaws loves my big sphinx of quartz"
*AsArray.S2 = @MyString
For I = 0 To Len(MyString)-1
Debug Chr(*AsArray\s[I])
Next
Code: Select all
Structure CharacterArray
s.c[0]
EndStructure
string.s="Sample string"
*AsArray.CharacterArray=@string
Debug Chr(*AsArray\s[5]) ;displays an "e"
For I.l=8 To 3 Step -1 ;displays "ts elp"
Debug Chr(*AsArray\s[I])
Next I
Code: Select all
Structure CharacterString
s.s{1}[0]
EndStructure
string.s="Sample string"
*AsCstring.CharacterString = @string
Debug *AsCstring\s[5] ;displays an "e"
For I.l=8 To 3 Step -1 ;displays "ts elp"
Debug *AsCstring\s[I]
Next I