TrimWhitespace (open)
Remove whitespace from both ends of a string
Syntax
// Core function, no LOADLIB necessary
STRING FUNCTION TrimWhitespace(STRING src)
Parameters
STRING src
The string to trim
Return value
STRING
The trimmed string
Description
This function removes all whitespaces (tab, cr, lf, space) from the beginning and the end of a string
Examples
// returns 'abc def'
STRING example1 := TrimWhitespace(" abc def ");
// returns 'Hello, World'
STRING example1 := TrimWhitespace("\r\n Hello, World\t\t \r \n ");