Description
PowerBuilder Enterprise provides support for the Arabic and Hebrew languages when run on an Arabic- or Hebrew-enabled version of Windows 95. Support includes new functions and a new EditMask character to handle Arabic or Hebrew characters and numbers.
Purpose
Use the Arabic and Hebrew features in PowerBuilder to develop applications specifically for those languages. You will be able to build applications for deployment on both 16-bit and 32-bit versions of Windows.
Usage
Applications built using the Arabic and Hebrew features in PowerBuilder must be deployed with the PowerBuilder Arabic or Hebrew deployment DLLs on workstations running the appropriate Arabic-enabled or Hebrew-enabled version of Windows.
On an Arabic-enabled or Hebrew-enabled version of Windows, you can display text in right-to-left order and test for Arabic or Hebrew characters in strings.
Functions
The existing IsArabic function takes a character as an argument and returns TRUE if the character is an Arabic character. There are three new functions, all of which take a string as an argument and return a boolean value.
|
This function
|
Returns TRUE if
|
|
IsAllArabic
|
All characters in the string are Arabic
|
|
IsArabicAndNumbers
|
All characters in the string are Arabic characters or numbers
|
|
IsAnyArabic
|
Any character in the string is an Arabic character
|
The existing IsHebrew function takes a character as an argument and returns TRUE if the character is a Hebrew. There are three new functions, all of which take a string as an argument and return a boolean value.
|
This function
|
Returns TRUE if
|
|
IsAllHebrew
|
All characters in the string are Hebrew
|
|
IsHebrewAndNumbers
|
All characters in the string are Hebrew characters or numbers
|
|
IsAnyHebrew
|
Any character in the string is a Hebrew character
|
EditMask character
A new mask character (b) in the EditMask control allows the entry of Arabic characters when you run PowerBuilder on the Arabic-enabled version of Windows and Hebrew characters when running on the Hebrew-enabled version. This mask is useful when a single letter prefix is required for an ID or when a single character entry is required. To use the mask, add an EditMask control to a window and open its property sheet. On the Mask property page, select String from the Type dropdown listbox and then select b from the Masks dropdown listbox.
The EditMask control does not have a RightToLeft property and does not support right-to-left text entry; all text is entered left to right.
About the Application RightToLeft property
The Application object has a RightToLeft property that you can set programmatically. This property does not display on the Application object property sheet. When this property is TRUE, MessageBox text displays right-to-left.
Note that when running under the right-to-left enabled version of Windows, this setting has no effect on the buttons in the MessageBox. The buttons will display left-to-right and the button text will be in English; only the message text will be displayed right-to-left. The buttons in the MessageBox only display in Arabic or Hebrew if you are using a localized version of Windows.
|