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 (894087)



The information in this article applies to:

  • Microsoft Windows XP Professional 64-Bit Edition (Itanium) 2003
  • Microsoft Windows XP Professional

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 now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows XP Service Pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. 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 + 200
Const 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 Integer
End 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


Modification Type:MajorLast Reviewed:9/14/2006
Keywords:kbWinXPsp2fix kbWinXPsp1fix kbBug kbfix kbQFE kbhotfixserver kbpubtypekc KB894087 kbAudITPRO kbAudDeveloper