Contents - Index


 

Use VarSetL to set a specified variable to the length of the value of another specified variable.

 

VarSetL may also be entered as SetL.

 

Required Operands

 

DEST is the name of the destination variable.  The current length of the data stored in the SRC variable is assigned to the DEST variable.  DEST must be a numeric variable declared with the DECLARE command.

 

SRC is the name of the source variable.  The current length of the data stored in SRC is assigned to the DEST variable.

 

Return Codes

 

OK Successful.

 

Examples

 

Obtain the current length of the data held in variable NAME.  Assign it to the variable NAMEL.

 

 ------------------------------------------------------------------------          .ip

 DECLARE NAME,CHAR,8,V

 DECLARE NAMEL,NUM,3,V

 PARSE NAME

 SETL NAMEL,NAME

 ------------------------------------------------------------------------          .ip