Talk:GolfmlClass
From Lazarus wiki
Jump to navigationJump to searchInitOK
(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)