Command: LEN

Previous  Next |  Direct link to this topic

Go to list of all Commands

Syntax: LEN('<StringToMeasureLengthOf>');

 

You can use this command to get the length of a string; you can use a STORE or the dynamic syntax as input.

 

Sample: @STORE1 = LEN('Hello'); will set @STORE1 to value 5 since the word Hello is 5 chars.

 

Sample: @STORE1 = LEN('$[$14.0.0]'); will set @STORE1 to the length of the value of Customer Ref. field on a Sales Order (dynamic of what user entered).
 

NB: Cannot be used as input to a macro command – only designed for use with the conditional commands