On Thu, 2003-03-27 at 03:36, Michael Van Canneyt wrote:
>
>
> On 26 Mar 2003, Jon David Sawyer wrote:
>
> > I seem to remember being able to declare something like:
> > MyArray = Array of Byte;
> >
> > Useing "MyArray" as an easy way to get a poi
I seem to remember being able to declare something like:
MyArray = Array of Byte;
Useing "MyArray" as an easy way to get a pointer to a memory location.
Now if I do something similar: tQPixelArray = Array of tQPixel; I get a
compiler error telling me it Expected [ and got Array.
Is there any way
> btw, all classes are implicit descendants of TObject. If you don't
> specify any base class, the class will be derived from TObject directly:
>
> type
> TMyClass = class
> procedure Something;
> ...
> end;
>
> TMyClass is automatically inherited from TObject
>
> Both postings sound
> for descendants of TObject, there's a method 'ClassType', e. g.
>
> ***
> begin
> if MyObject.ClassType = CCalculator then begin
> bla bla
> end else bla bla
> end;
> ***
>
> see reference manual - system unit. this only works if a descendant of
> TObject has been assigned to MyObject.
Heya ^_^ Is it possible to identify the class type?
For example TypeOf(MyClass) = TypeOf(MyClass)?
Is it possible to register diffrent types of classes at startup and then
identify them later?
This is probably a simple matter solvable with a few calls from the
System unit that are well docume