Quantcast
Viewing all articles
Browse latest Browse all 15743

[RESOLVED] Boolean expression and Syntaxe problem

In my last project (VS 2017 /FW 4.5), I had to change

Code:

if MyObject isnot nothing then ..
into

Code:

if not (MyObject is nothing) then...
to make it work (i.e detect that MyObject exists with something in it).

I thought both were equivalent but it seems that they aren't and I really can't see why. Or maybe I missed something in my code, which is truly a possibility:rolleyes:

Regards

Viewing all articles
Browse latest Browse all 15743

Trending Articles