TRIM$( s$ )

TRIM$(stringExpression)

Description:

This function removes any spaces from the start and end of the string in stringExpression. This can be useful for cleaning up data entry among other things.

Usage:

  sentence$ = " Greetings "
  print len(trim$(sentence$))


Produces: 9