Talk:GolfmlClass

From Lazarus wiki
Revision as of 08:37, 27 May 2014 by BigChimp (talk | contribs) (Why initok?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

InitOK

(Note: have not looked at the actual implementation) Hi - in your example you show this for creating the class:

GolfmlClass:=TGolfMLClass.Create; 
If NOT GolfmlClass.InitOK then Halt;

Why the need to call InitOK? Would it make sense for the TGolfMLClass constructor to call InitOK by itself?

Then perhaps the entire InitOK procedure can be moved to a private procedure, leaving just the Reset code for an end user to use...

Thanks, --BigChimp 08:37, 27 May 2014 (CEST)