At 12:16 AM 05/06/08, Rob Kennedy wrote:
Chris Stebbing wrote:
> I'm struggling through this automation project that I'm in the middle
> of. I need a Delph program to talk to an application which is a .net
> application and I have no idea what language it was written in.
It's COM, and it's .Net. Two things that make language irrelevant.
Hi Rob,
thanks for your response. I have been struggling with this and have
finally managed to crack the nut I believe. A colleague suggested I
just declare everything as Variants and it all seems to work.
Instead of declaring
> mysport : BfSport;
I simply declare
mysport : Variant
and then I can access mysport.sport and the other fields it all works.
Seems I was stuck on the Delphi mentality of having to declare
everything to the compiler or else it won't work. Taking the lead
from some VB source I just access the methods and fields as required
and it all seems to be working. Strange really.
Cheers,
Chris.
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi