| System Functions |
|
| Format | LEN(string$[,ERR=stmtref]) Where: |
|
| string$ | String expression whose length is to be returned. | |
| stmtref | Program line number or statement label to which to transfer control. | |
| Returns | Integer, length of given string, 0 (zero) if null string. | |
| Description | The LEN( ) function returns an integer reporting the length of the given string. If the given string is a null string ("") then the function returns a length of 0 (zero). | |
| Examples | A=LEN("HELLO") ! yields 5 A=LEN("") ! yields 0 A=LEN("A"+"BC") ! yields 3 A=LEN(DAY) ! yields 8 (DAY variable is in format MM/DD/YY) |
|