Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allegro help with []'s
#4
Quote:[]'s are only used for pointer indexing, () should be used to declare and access arrays, array[idx] is a shortcut for *(array + idx).

If i understand you right i can declare the following:
dim shared somestring as string ptr
and retrive singel chars out of it thne c way?
eg.: sometring[4] = mid$(somestring,4,1)

So Long, The Werelion!
color=red]Look at you, Hacker. A pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?" - Shodan, AI at Citadel Station orbiting Earth[/color]
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)