TiTaNiuM sAMuRai Posted June 14, 2002 Share Posted June 14, 2002 Is there a function to determine if a particular class exists? For a non-existing class, will calls such as those which return the class attributes return a null value? Quote Link to comment
Alexandre Villares Posted June 15, 2002 Share Posted June 15, 2002 Function ClassExists(ClassName : STRING) : BOOLEAN;BEGIN h1 := Nil; h1 := GetObject(ClassName); IF (h1 <> Nil) & (GetType(h1) = 94) THEN ClassExists := True ELSE ClassExists := False;END; []sAlexandre Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.