home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
vrac
/
homonlib.zip
/
ISTR.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-04-13
|
962b
|
43 lines
DEFINT A-Z
DECLARE FUNCTION Dstr$ (d#)
DECLARE FUNCTION Istr$ (i)
DECLARE FUNCTION Lstr$ (l&)
DECLARE FUNCTION Sstr$ (s!)
'****************************************************************************
'These functions simply make a string of a number and trim the leading space
' off of it. The four differenct functions are for the different numeric
' variable types: Double precision, Integer, Long integer and Single
' precision.
'
'They are not very complicated, but since I use the combination of LTRIM$()
' and STR$() so often, I might as well make my life easier.
'
'****************************************************************************
FUNCTION Dstr$ (d#)
Dstr$ = LTRIM$(STR$(d#))
END FUNCTION
FUNCTION Istr$ (i)
Istr$ = LTRIM$(STR$(i))
END FUNCTION
FUNCTION Lstr$ (l&)
Lstr$ = LTRIM$(STR$(l&))
END FUNCTION
FUNCTION Sstr$ (s!)
Sstr$ = LTRIM$(STR$(s!))
END FUNCTION