PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Changing the character set
  • Font variable
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Charset (Property)
In french: Alphabet
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
Use with a Font variable
..Charset is used to:
  • Find out the character set currently used by a Font variable.
  • Modify the character set used by a Font variable.
Use with the HFSQL data files
..Charset is used to find out the character set used by a HFSQL data file. This character set was selected by 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 character set. To modify the character set used by a data file, you must:
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Example with a Font variable
// Define the font characteristics
Font1 is Font
Font1..Name = "Arial"
Font1..Size = 14
Font1..Orientation = 45
Font1..Charset = charsetRussian
// Apply the font to "MyControl"
MyControl..Font = Font1
// Example with the HFSQL data files
HOpen(Customer)
FileLanguage is int = Customer..Charset
// Changes the character set according to the file format
SWITCH FileLanguage
CASE charsetArabic: ChangeCharset(charsetArabic)
CASE charsetDefault: ChangeCharset(charsetDefault)
CASE charsetGreek: ChangeCharset(charsetGreek)
CASE charsetHebrew: ChangeCharset(charsetHebrew)
CASE charsetOccidental: ChangeCharset(charsetOccidental)
CASE charsetRussian: ChangeCharset(charsetRussian)
CASE charsetTurkish: ChangeCharset(charsetTurkish)
OTHER CASE
// Switch to western character set
ChangeCharset(charsetOccidental)
END
Syntax
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 AppAjax

Finding out the character set currently used by a Font variable Hide the details

<Result> = <Font name>..Charset
<Result>: Integer constant
Type of character set used by the specified control:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetCurrentUses the current character set specified by ChangeCharset
charsetDefaultDefault character set defined for the current computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
Versions 20 and later
charsetMac
New in version 20
charsetMac
charsetMac
Characters to the Mac Roman standard (used on the old Macintosh versions).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters
<Font name>: Character string (with or without quotes)
Name of Font variable to use.
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 AppAjax

Modifying the character set used by a Font variable Hide the details

<Font name>..Charset = <New charset>
<Font name>: Character string (with or without quotes)
Name of Font variable to use.
<New charset>: Integer constant
Type of character set that will be used in the specified control:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetCurrentUses the current character set specified by ChangeCharset
charsetDefaultDefault character set defined for the current computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
Versions 20 and later
charsetMac
New in version 20
charsetMac
charsetMac
Characters to the Mac Roman standard (used on the old Macintosh versions).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters

Finding out the character set currently used by a 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:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetCurrentCurrent character set specified by ChangeCharset
charsetDefaultDefault character set defined for the current computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
Versions 20 and later
charsetMac
New in version 20
charsetMac
charsetMac
Characters to the Mac Roman standard (used on the old Macintosh versions).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters
<Data file>: Character string (with or without quotes)
Logical name of HFSQL data file to use.
Remarks

Changing the character set

When changing the character set, the fonts that use the requested character set must be installed on the current computer.
Note: To change the character set for all fonts in a single operation, use ChangeCharset.
WindowsLinuxiPhone/iPadWindows MobileUniversal Windows 10 AppAjax

Font variable

A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment