Length
Previous  Top  Next

Prototype

IntLen:=Length(strString)

Description

It returns string length into characters.

Parameters

StrString: string to work on.

Returned value

IntLen: integer that shows the string length.

Notes

None.

Example

//It stores  the current user's name
UserName:=_JobUser;

// It stores the string length JobUser
LengName:=Length(UserName);

//It stores date and hour
DateHour:=Now;

//It converts date and hour into string 
DateHourStr:=FormatDateTime('DD/MM/YYYY HH:NN:SS',DateHour);

//It puts together The User Name and the date/hour in a sole string
Insert(DateHourStr,UserName, LengName+1);