CT_NUMHIGH

 NUMHIGH()
 Returns the higher value byte in a 16-bit number
------------------------------------------------------------------------------
 Syntax

     NUMHIGH(<nWORD|cHexWORD>) --> nByte

 Argument

     <nWORD|cHexWORD>  Designates either a decimal number or hexadecimal
     digit string.

 Returns

     The higher value byte of the <nWORD|cHexWORD> 16-bit number is returned.

 Description

     NUMHIGH() breaks down a 16-bit number into its two bytes and returns the
     higher byte as a result.  Use this for such functions as SCANKEY() or
     GETCURSOR(), because NUMHIGH() separates the two bytes of the keyboard
     scan code.

 Note

     .  An invalid parameter returns a value of -1.

 Example

     Break down the combined return value of GETCURSOR():

     ? "Starting line for the cursor is:", NUMHIGH(GETCURSOR())

See Also: NUMLOW()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.