|
|
|
|
|
- Default value
- Fixed string
- Cross-platform code
String of (Variable type) In french: Chaîne sur
The String of type is used to manipulate fixed-length strings. These strings have a null character at the end, denoted by a zero (as in the C programming language). The specified length is the maximum number of characters in the string. The String of type must be used to send input/output parameters to Windows APIs. This type is also available for compatibility with other programming languages (Turbo Pascal for Windows, C, Visual Basic for Windows, etc.). Remarks: - This type of character string is in ANSI format.
- For a variable of type "String of", TypeVar returns the wlFixedString constant (value: 22).
FirstName is string of 8
FirstName = "Florence"
MyString is string of 10
MyString = "Test"
Syntax
Declaring and initializing a "String of" variable Hide the details
<Variable name> is string of <Length> = <Value> OR
<Variable name> is 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 "String of" variable corresponds to an empty string ("").
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|