Action
Retrieves the most significant byte of a variable.
Syntax
var = HIGH( s ) ‘ high function gets the upper byte of a word
HIGH(word) = byte ‘high statement set the upper byte of a word
Remarks
Var |
The variable that is assigned with the MSB of var S. |
S |
The source variable to get the MSB from. |
Word |
A word or integer variable that is assigned |
Byte |
The value to set to the MSB of the Word/Integer variable |
The HIGH() function returns the MSB of a variable while the HIGH() statement sets the MSB of a word variable.
See also
Example
Dim I As Integer , Z As Byte
I = &H1001
Z = High(I) ' is 16