ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / 
  • Default value
  • Special case
  • ASCIIZ string
  • Cross-platform code
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
ASCIIZ string of (Variable type)
In french: Chaîne ASCIIZ sur
The ASCIIZ string of type is used to manipulate strings with a null character at the end, denoted by a zero (as in the C programming language).
The length of an ASCIIZ string cannot exceed 2 GB. The length given to the ASCIIZ string must be equal to its current length plus 1 (for the binary zero).
Remarks:
  • WEBDEV - Browser code The ASCIIZ String type is not supported. It is replaced with the String type.
  • For a variable of type ASCIIZ string, TypeVar returns the wlASCIIZString constant (value: 23).
Example
FirstName is ASCIIZ string of 8
FirstName = "Florence"
Syntax

Declaring and initializing an "ASCIIZ string of" variable Hide the details

<Variable name> is ASCIIZ string of <Length> = <Value>
OR

<Variable name> is ASCIIZ string of <Length>
<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.
<Length>:
Maximum length for the string.
<Value>:
Value given to the variable.
Remarks

Default value

A declared and uninitialized "ASCIIZ string of" variable corresponds to an empty string ("").
Special case
WEBDEV - Server codeWindowsPHP

ASCIIZ string

The memory required by an ASCIIZ string is allocated when the string is declared. Therefore, you should avoid using very large strings.
WEBDEV - Browser codeWindows

Cross-platform code

Fixed-length strings are not available in Java. They are replaced with the String type at runtime.
However, Complete can be used on a String variable:
MyString is string
MyString = Complete("Test", 10)
// Equivalent to 
// MyString is fixed string of 10 characters
// MyString = "Test"
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/29/2024

Send a report | Local help