02-16-2005, 10:32 PM
Nope, STRING is actually a descriptor, [] will access the descriptor, not the data, but you could do:
Code:
dim shared somestring as byte ptr
somestring = strptr("abc")
i = 0
do while somestring[i] <> 0
print chr$( somestring[i] );
i = i + 1
loop
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php