Verfasst: 02.07.2008 23:15
Eigentlich wollte er ja das Zeichen und nicht des Ascii-Code, also eher so:
[Edit]
Oder auch beides:
Code: Alles auswählen
Structure charfeld
s.s{1}[0]
EndStructure
a.s = "Hallo hier bin ich"
*chararray.charfeld = @a
For i = 1 To Len(a)
Debug *chararray\s[i - 1]
Next i
[Edit]
Oder auch beides:
Code: Alles auswählen
Structure charfeld
StructureUnion
c.c[0]
s.s{1}[0]
EndStructureUnion
EndStructure
a.s = "Hallo hier bin ich"
*chararray.charfeld = @a
For i = 1 To Len(a)
Debug *chararray\s[i - 1] + " (Ascii:" + Str(*chararray\c[i - 1]) + ")"
Next i