Navigation: Function Reference > General Utility Functions > trim()

trim()

Top  Previous  Next

trim( source: String ) : String;

 

Removes blank spaces and control characters such as linefeeds from the beginning and the end of source.

 

Parameters

 

source

string type

 

var s: string;

 

s := '  DOG  ';

 

s := trim( s );

 

//s is now equal to 'DOG';

 

See also:

 

trimLeft()

trimRight()