Liberty BASIC Help Online

Using hexadecimal values
 
Liberty BASIC allows values to be expressed as hexadecimal numbers.  This is especially useful when calling API functions or using third party DLLs where the values specified in the documentation are in hexadecimal (base 16).  To convert a hexadecimal value, use the HEXDEC( ) function.  Here is an example:
 
    print hexdec( "FF" )
 
To convert a decimal value into a hexadecimal string, use the DECHEX$( ) function:
 
    print dechex$(255)
 
Back to Making API and DLL Calls


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/