home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
CLIPUDF.ARC
/
EXPAND.PRG
< prev
next >
Wrap
Text File
|
1986-02-04
|
768b
|
26 lines
*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))