ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / 
  • Default value
  • Fixed 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
The UNICODE string of type is a fixed-length string containing UNICODE characters only.
Remarks:
  • For a variable of type "UNICODE string of", TypeVar returns the wlUnicodeString constant (value: 16).
Example
FirstName is UNICODE string of 8
FirstName = "Florence"
Syntax

Declaring and initializing a "UNICODE string of" variable Hide the details

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

<Variable name> is UNICODE 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 "UNICODE string of" variable corresponds to an empty string ("").
Reports and QueriesWindows

Fixed string

  • The memory required by a fixed-length string is allocated when the string is declared. Therefore, you should avoid using very large strings.
  • Fixed-length strings are filled with spaces. Initializing and assigning a large string (several hundreds kilobytes) may take a long time.
Windows

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