|
-
October 27th, 1999, 01:23 PM
#1
How to reverse a string?
Is there a standard function to reverse a string?
thks!
-
October 27th, 1999, 11:31 PM
#2
Re: How to reverse a string?
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
-
October 28th, 1999, 01:23 AM
#3
Re: How to reverse a string?
vb6 has a strReverse function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|