
Chapter 9 Declaration Statements
9-11
DEFSTR (Statement)
Function
Declares a character string type variable. You can enter 247 characters or less
as a character string.
Format
DEFSTR <Variable name>[=<Constant>][,<Variable name>[=<Constant>]...]
Explanation
Declares a variable designated by <Variable name> as a character string. By
writing a constant after <Variable name>, initialization can be done
simultaneously with the declaration.
Multiple variable names can be declared at a time by separating each variable
with a comma (“,”).
Related Terms
DEFDBL, DEFINT, DEFSNG
Example
DEFSTR lsx, lsy, lsz 'Declares lsx, lsy, and lsz as character string type
'variables.
DEFSTR lsx = “DENSO” 'Declares lsx as a character string type variable and sets
'the initial value to “DENSO”.
Kommentare zu diesen Handbüchern