USING
PRINT USING
PRINT USING uses the FORMAT function to display numbers and strings.
See PRINT for more information. USG and USING are equivalent.
Example
1000
a = 2000
b = PRINT USING "#,###.##"; a
PRINT USING "#,###.## "; a; b ' <- Format is applied to all variables
PRINT USING "a = #####.00 b = #####"; a; b ' <- One formated string with placeholders for two variables
' Output: 1,000.
' Output: 1,000. 2,000.
' Output: a = 1000.00 b = 2000
Code samples using USING
002 numeric variables.bas
003 conditional branching.bas
006 arrays+.bas
7gables.bas
agendus.bas
anomail.bas
bairstow.bas
BAS_NOWv2.bas
base64.bas
bb2fork smurf.bas
betrayal: crows ii.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
conrec-sb-v01.bas
CSV_Viewer.bas
dataminmax.bas
dmsareaplot.bas
dogstar5.bas
fireworks.bas
gaussj.bas
hangman v2.bas
hangman.bas
image demo.bas
image_demo.bas
lander.bas
leastq.bas
lineareq.bas
Language
AND
AS
BAND
BG
BOR
BYREF
CALL
CASE
CATCH
CONST
DECLARE
DEF
DO
ELIF
ELSE
ELSEIF
END
END TRY
ENDIF
EQV
EXIT
FALSE
FI
FOR
FUNC
GOSUB
GOTO
IF
IFF
IMP
IN
LABEL
LET
LIKE
LOCAL
LSHIFT
MDL
MOD
NAND
NEXT
NOR
NOT
ON
OR
REM
REPEAT
RETURN
RSHIFT
SELECT
STEP
STOP
SUB
THEN
THROW
TO
TRUE
TRY
UNTIL
USE
USG
USING
WEND
WHILE
XNOR
XOR
If there is insufficient information on this page and you wish learn more about USING,
please send an email to smallbasic@gmail.com. You can help to improve information about
USING by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.