Change name of field in table

Posted by Philippe on October 19, 2001

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


Related Articles and Replies


[ DelphiLand FAQ ] [ Delphi Tutorials ]