Article View: borland.public.delphi.documentation
Article #44Creating a Dynamic Array referencing a Class Object
From: Nick DeLallo
Date: Sun, 13 Jul 2008 21:09
Date: Sun, 13 Jul 2008 21:09
10 lines
1144 bytes
1144 bytes
I define a dynamic array of Unit2.TestClassExample; XClassEx : array of Unit2.TclassExample; // okay //xClassEx := unit2.TClassExample(self); // does not work setlength(xclassEx,100); // okay // add to the array I get an access error // How do I initialize the array. // TclassExample is a record containing variable data
Technical Details
Message-ID:
<487a6f06$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10a202,b09bd3b997d42c64,start X-Google-Attributes: gid10a202,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Nick DeLallo" <ndelallo@twcny.rr.com> Sender: "Nick DeLallo" <ndelallo@twcny.rr.com> Reply-To: "Nick DeLallo" <ndelallo@twcny.rr.com> Subject: Creating a Dynamic Array referencing a Class Object Newsgroups: borland.public.delphi.documentation X-User-Info: 24.58.165.135 NNTP-Posting-Host: 207.105.83.66 Message-ID: <487a6f06$1@newsgroups.borland.com> Date: 13 Jul 2008 14:09:26 -0700 X-Trace: newsgroups.borland.com 1215983366 207.105.83.66 (13 Jul 2008 14:09:26 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail