Databases Reference
In-Depth Information
' value (-1) stays the same:
longint& = &HFFFF
shortint% = &HFFFF
PRINT "longint& =", longint&, HEX$(longint&)
PRINT "shortint% =", shortint%, HEX$(shortint%)
' The following assigns short constant &H8000 (-32,768) to a LONG
' integer. &H8000 is converted to &HFFFF8000; the decimal
' value (-32,768) stays the same:
longint& = &H8000
shortint% = &H8000
PRINT "longint& =", longint&, HEX$(longint&)
PRINT "shortint% =", shortint%, HEX$(shortint%)
Search WWH ::




Custom Search