View Full Version : how to create dbase tables
how can i create dbase, foxpro tables during runtime from delphi4 or delphi5
Hi!
This will create a dbase table during runtime. All you need is a TSource and a TTable component.
Table1.DatabaseName := 'C:\Mydbase';
Table1.TableName := 'AnyTable.dbf';
Table1.TableType := ttDBase;
//Create a field in the new table:
Table1.FieldDefs.Add('AnyField',ftString,20);
Table1.CreateTable;
hope this will help you!
tobias mühl
thanks a lot for that it saves me a re-invention of wheel .
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.