allie910
asked on
change fieldname of a table
Hi,
is there any way that I can change a field name in database table in runtime ?
Im using DBBase IV as my database table
I use :
TableData.open;
for i :=0 to TableData.FieldCount -1 do
begin
TableData.Fields[i].FieldN ame := ShareID[i];
end;
thanks alot ;)
is there any way that I can change a field name in database table in runtime ?
Im using DBBase IV as my database table
I use :
TableData.open;
for i :=0 to TableData.FieldCount -1 do
begin
TableData.Fields[i].FieldN
end;
thanks alot ;)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bah, didn't see the DBase thingie, well using BDE API calls is a bad idea anyway, since BDE isn't really supported anymore :-P
But if it helps him out, then it should be good. Otherwise, it would be a good idea to skip the BDE stuff.
Regards,
Stefaan
But if it helps him out, then it should be good. Otherwise, it would be a good idea to skip the BDE stuff.
Regards,
Stefaan
allie, go here
http://info.borland.com/devsupport/bde/bdeapiex/dbidorestructure.html
and read example 3
btw. a fieldname cannot be a number
meikl ;-)