ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
  • Changing the character set
  • Font variable
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Charset (Property)
In french: Alphabet
HFSQL ClassicHFSQL Client/ServerAvailable only with these kinds of connection
Use with a Font variable
The 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 files
The 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:
Example
iPhone/iPadIOS WidgetMac Catalyst
// Example with a Font variable
// Define the font characteristics
Font1 is Font
Font1.Name = "Arial"
Font1.Size = 14
Font1.SizeUnit = unitPoint
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 data file format
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
		// Switch to western character set
		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:
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 with ChangeCharset
charsetDefaultDefault character set of the current computer. No character set is forced.
charsetEastEuropeEastern European character sets (Polish, etc.)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetMacMac Roman character set (used in previous versions of Macintosh).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese 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:
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 with ChangeCharset
charsetDefaultDefault character set of the current computer. No character set is forced.
charsetEastEuropeEastern European character sets (Polish, etc.)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetMacMac Roman character set (used in previous versions of Macintosh).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese 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:
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 with ChangeCharset
charsetDefaultDefault character set of the current computer. No character set is forced.
charsetEastEuropeEastern European character sets (Polish, etc.)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetMacMac Roman character set (used in previous versions of Macintosh).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese 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.
iPhone/iPadIOS WidgetMac Catalyst

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

Last update: 12/06/2024

Send a report | Local help