home *** CD-ROM | disk | FTP | other *** search
- *Function....EXPAND()
- *Syntax......EXPAND(expC)
- *Author......Steve Straley
- *Parameters..Any character string.
- *Returns.....The same string is returned with spaces between characters
- *
- *Notes.......This function can be used when printing titles for reports
- * and menus with the display separated with spaces between
- * each character. This function will should save the trouble
- * of typing out those extra spaces.
-
- FUNCTION Expand
-
- PARAMETER in_string
-
- length = LEN(in_string)
- counter = 1
- out_str = ""
-
- DO WHILE counter <= length
- out_str = out_str + SUBSTR(in_string,counter,1) + " "
- counter = counter + 1
- ENDDO
-
- RETURN(TRIM(out_str))