home *** CD-ROM | disk | FTP | other *** search
- ' BLANKS.ASC -- QuickBASIC program demonstrates a user-defined function
- ' that strips leading & trailing blanks on numbers.
- ' This isn't mine - I don't know who wrote it
-
- DEF FNSTRIP$(Z) = MID$(STR$(Z) , 2 + (Z < 0))
-
- ' Demonstration of FNSTRIP$()
- LOCATE 4 , 27
- FENCE$ = CHR$(219) + CHR$(219)
- PRINT "BLANK STRIPPER DEMO"
- LOCATE 6 , 18
- FOR A = -1 TO 1 STEP .5
- PRINT TAB(18) "Before: ";FENCE$; A; FENCE$;
- PRINT TAB(40) "After: ";FENCE$; FNSTRIP$(A); FENCE$
- NEXT
-
- ' >>>>> Physical EOF BLANKS.ASC