?
Solved

Reverse Mirror text in VB

Posted on 2004-09-22
7
Medium Priority
?
268 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 53

Accepted Solution

by:
Ryan Chong earned 1000 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 53

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 53

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 53

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 53

Expert Comment

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

Featured Post

Technology Partners: 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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Progress

762 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