Re: Change name of field in table


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by WAllison on November 30, 2001 at 22:14:36:

In Reply to: Change name of field in table posted by Philippe on October 19, 2001 at 15:40:09:

: 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!


Related Articles and Replies


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]