|
|
|
|
- Default value
- Encoding of the Character type according to different platforms
- Differences between WINDEV/WEBDEV and WINDEV Mobile
Character (Variable type) In french: Character
The Character type is used to manipulate a character. This type of variable corresponds to a 1, 2 or 4-byte character, according to the string management mode and execution platform. Remarks: - For a character, TypeVar returns the wlCharacter constant (value: 81).
MyCharacter is character
MyCharacter = "D"
Syntax
Declaring and initializing a character variable Hide the details
<Variable name> is character = <Value> OR
<Variable name> is character <Variable name> = <Value>
<Variable name>: Name of the variable to declare. When several variables of the same type are declared and initialized on the same line, only the last variable is initialized. <Value>: Value given to the variable. Remarks Default value A declared and uninitialized "Character" variable corresponds to Charact(0). Encoding of the Character type according to different platforms The "Character" type is used to manipulate a character. This type of variable corresponds to a 1, 2 or 4-byte character, according to the string management mode and execution platform. - In Windows:
- in Ansi, a character is encoded on 1 byte,
- in Unicode, a character is encoded on 2 bytes.
- In Linux:
- in Ansi, a character is encoded on 1 byte,
- in Unicode, a character is encoded on 4 bytes.
- In iOS, in Unicode, a character is coded on 4 bytes.
Differences between WINDEV/WEBDEV and WINDEV Mobile - In WINDEV and WEBDEV, ANSI characters are used by default.
- In WINDEV and WEBDEV, Unicode characters are used by default.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|