ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / 
  • Default value
  • Encoding of the Character type according to different platforms
  • Differences between WINDEV/WEBDEV and WINDEV Mobile
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
The Character type is nullable. For more details, see Allowing nullable types.
Remarks:
  • Universal Windows 10 AppAndroidAndroid Widget The Character type is not supported. It is replaced with the String type.
  • For a character, TypeVar returns the wlCharacter constant (value: 81).
Example
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.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2024

Send a report | Local help