ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / 
  • Default value
  • Encoding of the Character type according to different platforms
  • ANSI/Unicode
  • 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 AppJava 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.
WINDEV

ANSI/Unicode

  • If the current configuration uses ANSI strings at runtime, the Character variables will be ANSI characters (default behavior).
  • If the current configuration uses Unicode strings at runtime, the Character variables will be Unicode characters.
Reminder: To change the string format in the current configuration:
  1. Open the project description window: on the "Project" tab, in the "Project" group, click "Description".
  2. In the "Project" tab, click "Configuration description".
  3. In the window that appears, go to the "Unicode" tab and select the desired mode.

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