288 of 307
ZBasic System Library 278 ZX Microcontroller Family Trim Type Function returning String Invocation Trim(str) Parameter Method Type Description str ByVal String The string from which blanks will be stripped. Discussion This function returns a new string containing the same characters as the passed string except that leading and trailing spaces will be removed. If the string consists solely of spaces, the resulting string will be zero length. Example Dim s as String, s1 as String s = " Hello, world! " s2 = Trim(s) ' the result will be "Hello, world!" See Also Left, Mid, Right