Code: Select all
dim handle as any ptr
if handle = NULL then ... ' OK
if not handle then ... ' error: wrong type argument to bit-complement
The error tells me that the NOT HANDLE test isn't supported. So is the first test HANDLE = NULL effective? Or is there more to it to see whether a pointer is assigned?