CLNGPTR

CLNGPTR(expression)

Returns the expression converted to a longptr data type.


expressionThe expression to evaluate and convert to a longptr.

REMARKS
* Takes a Variant.
* The "expression" can be any number between - 9.2 E+18 to 9.2E+18.
* Valid on 32 and 64 bit platforms.
* Fractions are rounded.
* You can use the CLNG function to return an expression converted to a Long data type.
* You can use the CLNGLNG function to return an expression converted to a LongLong (64 bit platform) data type.

Sub Testing() 
Dim oVariable As LongPtr
    oVariable = 200
    Debug.Print CLngPtr(oVariable) '= 200
End Sub

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top