Is there a standard function to reverse a string?
thks!
Printable View
Is there a standard function to reverse a string?
thks!
alexK,
Use following code, I made a dll of such functions... I just copied it for you.
private Function Reverse(myStr as string) as string
Dim TempStr as string
Dim lLen as Long
lLen = len(myStr)
TempStr = ""
for i = lLen to 1 step -1
TempStr = TempStr & mid(myStr, i, 1)
next i
Reverse = TempStr
End Function
I hope this will solve the problem.
Santulan
vb6 has a strReverse function