Converts two bytes to long

Functions to convert two bytes to a numeric value (long), (both little-endian and big-endian)
Used in some of the calculations of image dimensions.

CodeFunctionName
What is this?

Public

Tested

Imported
Function L_R256(strTemp)
    L_R256 = Clng(Asc(Left(strTemp, 1)) + ((Asc(Right(strTemp, 1)) * 256)))
End Function
Function R_L256(strTemp)
    R_L256 = Clng(Asc(Right(strTemp, 1)) + ((Asc(Left(strTemp, 1)) * 256)))
End function
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
':::                                                                                :::
'::: Functions to convert two bytes to a numeric value (long)    :::
'::: (both little-endian and big-endian)                                :::
':::                                                                                :::
':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

strTemp

Views 195

Downloads 64

CodeID
DB ID