Numbers that are separated by a hyphen are displayed in the reverse order when you enter them in a Visual Basic form on a Windows XP-based computer

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
Symptoms
Consider the following scenario. You are running Microsoft Visual Basic 6.0 Service Pack 5 (SP5) on a Microsoft Windows XP-based computer. You use the RichTextBox control in a Visual Basic form to enter text from right to left for the Hebrew language. Next, you enter two numbers that are separated by a hyphen in the RichTextBox control. However, after you enter these two numbers from right to left, the numbers are displayed in the reverse order. For example, when you enter the telephone number 052-3968456 in the RichTextBox control, the numbers are displayed as 3968456-052.
Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. After you install this hotfix, you must configure the RichTextBox control to recognize the expected behavior of Hebrew-language text. To do this, use the following Visual Basic code:
Const WM_USER As Long = &H400 Const EM_SETBIDIOPTIONS As Long = WM_USER + 200Const EM_GETBIDIOPTIONS As Long = WM_USER + 201 Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long Private Type BIDIOPTIONS    cbSize As Long    wMask As Integer    wEffects As IntegerEnd Type Private Sub RichTextBox1_Click()    Dim RetVal As Long    Dim wMsg As Long    Dim bidi  As BIDIOPTIONS           wMsg = EM_SETBIDIOPTIONS    ' H40 : Mask and effect settings to obtain this behavior.    bidi.wEffects = &H40    bidi.wMask = &H40        RetVal = SendMessage(RichTextBox1.hwnd, wMsg, 0, bidi)    End Sub

Prerequisites

To install this hotfix on an Itanium-based version of Windows XP, you must have Windows XP Service Pack 1 (SP1) installed. To install this hotfix on an x86-based version of Windows XP, you must have Windows XP Service Pack 1 (SP1) or Windows XP Service Pack 2 (SP2) installed.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows XP, x86-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Riched20.dll5.30.23.1224424,96028-Feb-200515:20x86SP1SP1QFE
Riched20.dll5.30.23.1225432,12828-Feb-200515:16x86SP2SP2QFE
Windows XP, Itanium-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Riched20.dll5.30.23.12241,443,32828-Feb-200501:50IA-64SP1SP1QFE
Wriched20.dll5.30.23.1224424,96028-Feb-200501:50x86SP1WOW
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More information
For more information about the standard terminology that is used to describe Microsoft software updates, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 894087 - Last Review: 01/16/2015 09:03:20 - Revision: 4.0

Microsoft Windows XP Professional

  • kbnosurvey kbarchive kbautohotfix kbwinserv2003sp2fix kbwinxpsp2fix kbwinxpsp1fix kbbug kbfix kbhotfixserver kbqfe KB894087
Feedback