Trim

Removes whitespaces on start and end of a string, optional the chars given by a constant string or data object.

Whitespaces means: 0,9,32,13,10

Syntax: string = Trim( Expression, [trimChars] )

  • trimChars: optional constant string or data object (first byte is number of bytes) containing the chars do you want to trim.
Example
  dim s as string
 
  s = "   hello  "
  s = Trim(s)  ' result: "hello"