Quote:

> Reverse the string

> myStr = "1234565789"

> newStr = ""

> for x = len(myStr) to 1 step -1

> newStr = newStr & mid(Mystr,x,1)

> next x

> now myStr is equal to 987654321

> and you can work with mid

> Frank.

It would be better to dimension the string before entering the loop:

myStr = "1234565789"

newStr = myStr

x = Len(myStr) + 1

for i = 1 To x - 1

Mid(newStr, i, 1) = Mid$(myStr, x - i, 1)

next i

LFS