Length

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 3


Length (aString) Number

ParameterTypeDescription
aStringStringString for which to return length
Function resultNumberLength of string

Description

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

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

Example

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   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next