MC-Basic:SYSTEM.PRINTMODE

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= Sys.PrintMode = ''<mode>''<br> System.PrintMode = ''<mode>''<br> ?Sys.PrintMode<br> ?System.PrintMode |AVAILABILITY= All versions |DESC…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Specifies the default format in which Longs are printed when using the PRINT instructions.

Syntax

Sys.PrintMode = <mode>

System.PrintMode = <mode>

?Sys.PrintMode

?System.PrintMode

Availability

All versions

Type

String

Range

HEX , BIN or DECIMAL

Default

DECIMAL

Scope

Terminal

Examples

System. PrintMode=decimal            'Print numbers in decimal (default) format

MyInteger = 10                               ‘Assign value to Long variable

?MyInteger                                      ‘Query the value: returns “10”

System.PrintMode = hex                  ‘Print numbers in hex format
 

?MyInteger                                      ‘Query the value: returns “0xa”

System. PrintMode=Bin                   'Print numbers in binary format

?MyInteger                                      ‘Query the value: returns “0b1010”

See Also