Core Function Trim
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Trim( <expression>, <chars> ) </pre> === Description === Removes whitespace from the beginning and end of a string. === Parameters === ==== expression ==== The string ...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 19: | Line 19: | ||
=== Return Value === | === Return Value === | ||
− | Success: Returns | + | Success: Returns trimmed string. |
− | Failure: Returns | + | Failure: Returns old string. |
=== Remarks === | === Remarks === |
Latest revision as of 12:38, 14 June 2015
Trim( <expression>, <chars> )
Contents |
Description
Removes whitespace from the beginning and end of a string.
Parameters
expression
The string to use.
chars
Optional; A string containing chars to be removed.
Return Value
Success: Returns trimmed string.
Failure: Returns old string.
Remarks
None.
Example
$str = " The quick brown fox "; MsgBox( "'" . Trim($str) . "'" );