You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##Description
The Str.Trim function takes the string str and returnsa string in all the leading and trailing spaces (the spaces at thebeginning and the end) are deleted. For example, Str.Trim (" This is a test ") returns"This is a test". If str only has spaces in it, thenStr.Trim will return an empty string.
##Example
This program obtains input from the user until the user enters a linewith non-whitespace characters in it.
var line : string
loop
put "Enter a non-empty line of text: " ..
get line : *
exit when Str.Trim (line) not= ""
end loop
put "You entered ", line
##Status
Exported qualified.
This means that you can only call the function by calling Str.Trim, not by calling Trim.