By patvdv at 26 Feb 2008 - 21:57
void not.fixed( string string_var(.) )
You can fill a string with or without specifying a start position. If you specify a start position, unused positions in the string are filled with spaces. You can prevent the string from being filled out with spaces by calling not.fixed() before filling the string. Note that, when you assign a new value to the string variable, positions after the new value are not changed.
This function does not work with variables declared as FIXED.
buf(5) = "***" | buf contains " *** " (length = 10)
buf = "***" | buf contains "***" (length = 3)
not.fixed( buf )
buf(5) = "***" | buf contains " ***" (length = 7)
buf = "***" | buf contains "*** ***" (length = 7)