View Single Post

  #2 (permalink)  
Old 04-19-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Re: OleVariant Problem with Delphi 6

Top204:

You first need to define a variable to store the item number. In your routine, create a variable defined as an olevariant. For example:


procedure TFMain.AssignName;
var ilevariant;
begin
FMap.Shapes.Item[i].Name := 'my name';
end;

That should do it.
Reply With Quote