strLen()

The system function StrLib.strLen returns the number of bytes in an item, excluding any trailing spaces and nulls.

  StrLib.strLen(source VagText in)
  returns (result INT)
result
An item defined as type INT or the following equivalent: type BIN with length 9 and no decimal places.
source
String item or literal to be measured.

Example

  length = StrLib.strLen(source);

Related reference
EGL library StrLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.