Kurt said

> But typecasting is good : imagine being the 5th...

Typecasting is Good?! and I thought it was only in Delphi as a Last Resort!!
to give symbolic meaning to pointers

re

>  aItems[0].Text := 'a';
>  aItems[1].Text := 'b';
>  aItems[2].Name    := 'c';
>  aItems[3].Parent  := Form1;

if AItems is a dynamic array of Record this is already valid
are we talking about the save thing? when I started this request for

var
  ASet: Set(TClass);
  Item: TClass

  Item  := ASet.Add;

I was meaning a homogenous set (obviously) of TClass Objects
I'd hate to mention how a ForEach Method would be useful (an save my OOS)

ASet.ForEach(Method)

TTFN
Neven




---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to