oesys
asked on
Reverse Mirror text in VB
How can a make reverse mirror text in VB. also how can in stop my words in Hindi fonts from getting truncated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To reverse string by words itself, you can 1st try to split the string with space " ", and then do a loop backwards to re-attach the string again..
Try look for the Split function and For .. Loop, let me know if you want to provide an example.
regards
Try look for the Split function and For .. Loop, let me know if you want to provide an example.
regards
Here is an example:
Private Sub Command1_Click()
Dim myStr As String, newStr As String, tmpArr() As String
myStr = "Hey! How are you ?"
tmpArr = Split(myStr, " ")
For i = UBound(tmpArr) To 0 Step -1
newStr = newStr & tmpArr(i) & " "
Next i
'Remove last extra " "
newStr = Left$(newStr, Len(newStr) - 1)
MsgBox newStr
End Sub
Will this helps?
Private Sub Command1_Click()
Dim myStr As String, newStr As String, tmpArr() As String
myStr = "Hey! How are you ?"
tmpArr = Split(myStr, " ")
For i = UBound(tmpArr) To 0 Step -1
newStr = newStr & tmpArr(i) & " "
Next i
'Remove last extra " "
newStr = Left$(newStr, Len(newStr) - 1)
MsgBox newStr
End Sub
Will this helps?
How's the progress, oesys ? Still need help here?
For more info, see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;193540
http:Q_20336162.html