Solved

Reverse Mirror text in VB

Posted on 2004-09-22
7
266 Views
Last Modified: 2010-04-17
How can a make reverse mirror text in VB. also how can in stop my words in Hindi  fonts from getting truncated.
0
Comment
Question by:oesys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
7 Comments
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 250 total points
ID: 12121704
>>reverse mirror text
Try use StrReverse function.

Syntax:
StrReverse(string1)

Example:

Dim MyStr
MyStr = StrReverse("VBScript") ' MyStr contains "tpircSBV".
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 12121723
To display Hindi fonts/ characters correctly in your forms, you may probably can do that by using M$ Form 2.0 Object Library.

For more info, see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;193540
http:Q_20336162.html
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 12131760
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
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 12139921
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?
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 12270398
How's the progress, oesys ? Still need help here?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question