|
-
Dec 7th, 2001, 02:24 PM
#1
Problem in text reversing
Hello,
I made up a program for a friend of mine who had problems copying a foregin language text from ie into word - the lines were back-to-front, I handled that problem BUT the english words and the numbers were back to front and I can't think of a way to fix that problem any ideas would be greatly appriciated.
-
Dec 7th, 2001, 02:26 PM
#2
Give an example of what you mean. I can't visualize it.
-
Dec 7th, 2001, 03:02 PM
#3
I used strreverse to reverse the string but if there was let's say "this is no.12" then it came out "21.on si siht" and I want to keep the number, i.e. "12.on si siht".
-
Dec 7th, 2001, 03:25 PM
#4
You want to reverse not character but all word. I will work on it.
-
Dec 7th, 2001, 03:27 PM
#5
VB Code:
Dim Splitter() As String
Splitter = Split(Text1.Text, " ")
Text1.Text = ""
For i = UBound(Splitter) To 0 Step -1
Text1.Text = Text1.Text & " " & Splitter(i)
Next i
I think that what you want
-
Dec 8th, 2001, 11:36 AM
#6
Your idea is to split the words and check if they're numbers?
-
Dec 8th, 2001, 11:51 AM
#7
no... can you test the code ??? Because it work...
-
Dec 8th, 2001, 11:53 AM
#8
It check all space chr then put in a array all word than put in a variable all array but in reverse........
-
Dec 8th, 2001, 12:47 PM
#9
Thx for the help, you gave me an idea, I'll split each line by spaces and do a isnumberic check, thx!
-
Dec 8th, 2001, 04:56 PM
#10
No problem but my code do it, just test it
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
|