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 to return an expression converted to a Long data type.
* You can use the CLNGLNG to return the 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

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