Microsoft KB Archive/894087

= 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 =

Article ID: 894087

Article Last Modified on 8/29/2007

-

APPLIES TO


 * Microsoft Windows XP for Itanium-based Systems Version 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.



Hotfix information
A supported hotfix is now 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 service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or 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. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

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 &quot;user32&quot; Alias &quot;SendMessageA&quot; (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, Itanium-based versions


STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; 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

Keywords: kbwinserv2003sp2fix kbwinxpsp2fix kbwinxpsp1fix kbbug kbfix kbhotfixserver kbqfe kbpubtypekc KB894087

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.