DictField.stringLen Method
Returns the string size of the field if the base type of the field is a string.
Syntax
public int stringLen()
Run On
Called
Return Value
Type: int
The string size of the field if the base type of the field is a string; otherwise, 0 (zero).
Examples
The following example shows retrieving the string length of a field.
DictField df;
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum));
if (df)
{
print strfmt("The string length is %1.", df.stringLen());
}