function StrReverse(string s) as string
=======================================
int le=len s
int j=le
int i
string t=nuls le
byte bs at strptr s
byte bt at strptr t
indexbase 1
for i=1 to le
bt[j]=bs[i]
j--
next
return t
end function
'
'TEST:
======
print StrReverse "1234ABCD"