Hello Peter, > Before you typecast a variant to an interface, you must typecast it to > Iunknown or Idispatch: > Loc := IDispatch(Vertex) as Location;
Thank you. This works as a glance :) > FYI, Below is a unit that allows you to create a 'for each' statement in > Delphi. Hmm itgives me access violation, but I study it later. Probably I do someting wrong. Thanks for it ! --- Rgds, Wilfried http://www.mestdagh.biz __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk