home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
numform.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
669b
|
15 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
SUB NumFormat (FormatSt$, Number#, Result$)
Handle% = FREEFILE
OPEN "NUL" FOR RANDOM AS #Handle%
FIELD #Handle%, 128 AS Foo$
PRINT #Handle%, USING FormatSt$ + CHR$(255); Number#;
Result$ = LEFT$(Foo$, INSTR(Foo$, CHR$(255)) - 1)
CLOSE Handle%
END SUB