Hi guys,

I have a quick question related to some automation work I am doing and hoped that one of you may be able to shed light.  Anyway I have created a new OleCoordinate class defined as TAOleCoordinate = class(TAutoObject); and have created a related list class defined as TAOleCoordinateList = class(TAutoObject);

I have added a method to TAOleCoordinateList called .Add(AValue: OLEVariant): Integer which attempts to add AValue to a TList object.  The problem is that I don’t know how to type cast OLEVariant to TAOleCoordinate (even though I know it is that object because I created it as such and passed it into this method). 

Anyone able to help me in this matter?

Cheers,

Andrew

 

BTW - This is in Delphi 5.

 
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to