Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allegro help with []'s
#5
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
Reply


Messages In This Thread
Allegro help with []'s - by Jotz - 02-16-2005, 05:04 AM
Allegro help with []'s - by adosorken - 02-16-2005, 05:08 AM
Allegro help with []'s - by v3cz0r - 02-16-2005, 05:12 AM
Allegro help with []'s - by BastetFurry - 02-16-2005, 01:53 PM
Allegro help with []'s - by v3cz0r - 02-16-2005, 10:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)