|
|
|
|
|
- Changing the character set
- Font variable
Charset (Property) In french: Alphabet
 Available only with these kinds of connection
Use with a Font variableThe Charset property is used to: - Get the character set used by a variable of type Font.
- Change the character set used by a variable of type Font.
Use with HFSQL data filesThe Charset property gets the character set used by an HFSQL data file. This character set is selected with ChangeCharset and taken into account when creating the data file. This property is read-only. Reminder: By default, the character set used by a data file is the ANSI alphabet.. To change the character set of a data file, you must:
HOpen(Customer)
FileLanguage is int = Customer.Charset
SWITCH FileLanguage
CASE alphabetArabic: ChangeCharset(alphabetArabic)
CASE defaultAlphabet: ChangeCharset(defaultAlphabet)
CASE alphabetGreek: ChangeCharset(alphabetGreek)
CASE alphabetHebrew: ChangeCharset(alphabetHebrew)
CASE charsetOccidental: ChangeCharset(charsetOccidental)
CASE RussianAlphabet: ChangeCharset(RussianAlphabet)
CASE alphabetTurkish: ChangeCharset(alphabetTurkish)
OTHER CASE
ChangeCharset(charsetOccidental)
END
Syntax
Getting the character set used by a Font variable Hide the details
<Result> = <Font>.Charset
<Result>: Integer constant Type of character set used by the specified control:
| | charsetAnsi | Roman characters in ANSI standard | charsetArabic | Arabic characters | charsetBaltic | Baltic characters | charsetChinese | Chinese characters (People's Republic of China) | charsetTraditionalChinese | Traditional Chinese characters (Republic of Taiwan) | charsetKorean | Korean characters | charsetCurrent | Uses the current character set specified with ChangeCharset | charsetDefault | Default character set of the current computer. No character set is forced. | charsetEastEurope | Eastern European character sets (Polish, etc.) | charsetGreek | Greek characters | charsetHebrew | Hebrew characters | charsetJapanese | Japanese characters | charsetMac | Mac Roman character set (used in previous versions of Macintosh). | charsetOccidental | Roman characters in ANSI standard | charsetRussian | Russian characters | charsetThai | Thai characters | charsetTurkish | Turkish characters | charsetVietnamese | Vietnamese characters |
<Font>: Font variable Name of the Font variable to be used.
Changing the character set used by a Font variable Hide the details
<Font>.Charset = <New charset>
<Font>: Font variable Name of the Font variable to be used. <New charset>: Integer constant Type of character set that will be used in the specified control:
| | charsetAnsi | Roman characters in ANSI standard | charsetArabic | Arabic characters | charsetBaltic | Baltic characters | charsetChinese | Chinese characters (People's Republic of China) | charsetTraditionalChinese | Traditional Chinese characters (Republic of Taiwan) | charsetKorean | Korean characters | charsetCurrent | Uses the current character set specified with ChangeCharset | charsetDefault | Default character set of the current computer. No character set is forced. | charsetEastEurope | Eastern European character sets (Polish, etc.) | charsetGreek | Greek characters | charsetHebrew | Hebrew characters | charsetJapanese | Japanese characters | charsetMac | Mac Roman character set (used in previous versions of Macintosh). | charsetOccidental | Roman characters in ANSI standard | charsetRussian | Russian characters | charsetThai | Thai characters | charsetTurkish | Turkish characters | charsetVietnamese | Vietnamese characters |
Getting the character set used by an HFSQL data file Hide the details
<Data file charset> = <Data file>.Charset
<Data file charset>: Integer constant Type of character set used by the specified data file:
| | charsetAnsi | Roman characters in ANSI standard | charsetArabic | Arabic characters | charsetBaltic | Baltic characters | charsetChinese | Chinese characters (People's Republic of China) | charsetTraditionalChinese | Traditional Chinese characters (Republic of Taiwan) | charsetKorean | Korean characters | charsetCurrent | Uses the current character set specified with ChangeCharset | charsetDefault | Default character set of the current computer. No character set is forced. | charsetEastEurope | Eastern European character sets (Polish, etc.) | charsetGreek | Greek characters | charsetHebrew | Hebrew characters | charsetJapanese | Japanese characters | charsetMac | Mac Roman character set (used in previous versions of Macintosh). | charsetOccidental | Roman characters in ANSI standard | charsetRussian | Russian characters | charsetThai | Thai characters | charsetTurkish | Turkish characters | charsetVietnamese | Vietnamese characters |
<Data file>: Character string Logical name of the HFSQL data file to use. Remarks Changing the character set When changing the character set, the fonts that use the new character set must be installed on the current computer. Note: To change all font character sets in a single operation, use function ChangeCharset.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|