CLNGPTR(expression)

Returns the expression converted to a longptr data type.


expressionThe expression to evaluate and convert to a longptr.

REMARKS
* Takes a Variant.
* 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

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