Computer Science Canada

reversing string

Author:  Evilkilla [ Sat Jun 05, 2004 8:35 pm ]
Post subject:  reversing string

Hi is there a way to reverse a string.... say "hi" and i want it to be "ih"
mainly because i am making a calculator and i need to know how to do this, because i am getting when i enter using keypad as the string 100 it comes "001" but i want "100" how can i reverse it thanks. i will post calculator when i am done! thanks!

Author:  Paul [ Sat Jun 05, 2004 9:23 pm ]
Post subject: 

code:

var word: string:= "word"
var drow: string:= ""
for decreasing a: length(word)..1
drow+= word(a)
end for
put drow


: