Date: Fri, 28 Aug 2009 10:09:02 +0200
From: Jesper Stenlund <jes...@handelsbanken.se>
Subject: Refactor - Extract method
To: delphi@elists.org
Message-ID:
        
<of90b088bf.9603be61-onc1257620.002c38a0-c1257620.002cc...@notes.handelsbanken.se>
        
Content-Type: text/plain; charset="US-ASCII"

I'm trying to use the Refactor - Extract method on this code block. if vntIP.GetProperty('IPXLCStTp') = '4' then begin
  pIEnumIPXLCStat := IUnknown(vntIP.IPXLCStats._NewEnum) as IEnumVariant;
<<snip>>
VariantClear(vntIPXLCStat);
    pIEnumIPXLCStat.Next(1, vntIPXLCStat, Cardinal(intIPXLCStatCount));
  end;
end;


But I get this error message:

"Unable to cast object of type 'Borland.Delphi.VariantType' to type 'Borland.Delphi.ProcedureType'."



Try this
http://www.google.com.au/search?hl=en&lr=&ei=ZnKYSrr3B6jg6gOqz-m9BA&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=Unable+to+cast+object+of+type+%27Borland.Delphi.Variant+Type%27+to+type+%27Borland.Delphi.ProcedureType%27&spell=1
Mick
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to