Length

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 3


Length (string) Number

ParameterTypeDescription
stringStringString for which to return length
Function resultNumberLength of string

Description

Length is used to find the length of string. Length returns the number of characters that are in string.

Note: The test If (vtAnyText="") is equivalent to the test If(Length(vtAnyText)=0).

Examples

This example illustrates the use of Length. The results, described in the comments, are assigned to the variable vlResult.

   vlResult := Length ("Topaz")  ` vlResult gets 5 
   vlResult := Length ("Citizen")  ` vlResult gets 7

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next