[Implemented] Check if an object is existent ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

[Implemented] Check if an object is existent ?

Post by WolfgangS »

Hi !
I want to ask for the possebillity to check if a special object is already created or not. I you check it this way : 'if obj' and it isn't createt yet, it will declare the obj variable as long which causes an error during the compiling.
The only possebillity is to handle a second variable which tells when the object is already decleared or not.

How about: BOOL answer.l=CheckObj(Obj) ?

MFG
WolfgangS

(Implemented as 'IsXXXX()', ie: IsWindow() etc.)
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel