Delphi Programming question
Posted on 1997-09-02
OK, OK, I'm a newbe and probably this is the stupidest one you've seen;
But I want to convert my project to Delphi and get read of the
much hated VB ...(please help me)
I Was trying to convert the following VB code :
Codice = String(4)
Titolo = String(1)
UC = Single;
PUBLIC Mib() = TMib
size = db.recordcount
redim mib(1 to size)
for count = 1 to size
mib(count).Codice = db("codice")
The kindness of Bryan Valencia (Software Services - Making Windows Scream) helped me
see that if I needed resizable arrays of User Defined type I could use
TList, for TList is a resizeble arrray of objects.
NOW HERE START THE PROBLEM .......
I've tried the following code
TMib = class(TObject)
Codice : String;
Titolo : String;
Tipol : String;
Incr : Integer;
UltimoClose : Single;
TMibList = class(TList)
IsConnected, GiornataAperta : Boolean;
Mib : TMibList;
tmpMib : TMib;
But every time I try to access the tmpMib or MIb variables I get stack overflows,
even after calling 'tmpMib.Create' (<- No error but the var is still nil )
WHAT'S WRONG .....?
P.S. The documentation regarding the Object Pascal is (Edited by Computer101) !
I, like may others, must write some quite complex programs,
and all the books talk about are forms and ActiveX ....Thanks
If anyoune can suggest a good book on the subject, it will be great
Great Thanks to anyone who'll read this, I know it has to be a stupid one !!!