MAKEINT

Top  Previous  Next

Action

Compacts 2 bytes into a word or integer.

 

 

Syntax

varn = MAKEINT(LSB , MSB)

 

 

Remarks

Varn

Variable that will be assigned with the converted value.

LSB

Variable or constant with the Least Significant Byte.

MSB

Variable or constant with the Most Significant Byte.

The equivalent code is :

varn = (256 * MSB) + LSB

 

 

See also

MAKEDEC BCD()

 

 

Example

Dim a As Integer , I As Integer

a = 2

I = MakeINT(a , 1) 'I = (1 * 256) + 2  = 258

End