[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]
Posted by WAllison on November 30, 2001
In Reply to: Re: Change name of field in table posted by WAllison on November 30, 2001 at 22:14:36:
: : Hello, : : I want to change the field name in paradox table but i receive a message error index.. : : I find the name but i can't change it : : Tcours.active:=true; : : edit1.text:=Tcours.fieldbyname('Date').fieldname; : : Tcours.close; : : Tcours.exclusive:=true; : : Tcours.Fields.Fields[1].FieldName:='Dates'; : : Tcours.active:=false; : : Thank you for your help : : Philippe
i'd suggest closing the table after you try to modify it! Try This Tcours.close; Tcours.exclusive:=true; TCours.open; Tcours.Fields.Fields[1].FieldName:='Dates'; Tcours.active:=false; Tcours.close;
[ DelphiLand FAQ ] [ Delphi Tutorials ]
|