home *** CD-ROM | disk | FTP | other *** search
- *Function....LTRIM()
- *Syntax......LTRIM(expC)
- *Parameters..Any character expression.
- *Returns.....The same string with any leading blanks moved to the
- * end.
- *Notes.......Removing the addition of a space in the assignment
- * statement will return a string that is shorter by
- * the number of leading spaces.
-
- FUNCTION LTRIM
-
- PARAM string
-
- DO WHILE SUBSTR(string,1,1) = " " .AND. LEN(string) > 1
- string = SUBSTR(string,2) + " "
- ENDDO
-
- RETURN(string)