PDA

View Full Version : how to create dbase tables


N/A
08-27-2000, 07:50 PM
how can i create dbase, foxpro tables during runtime from delphi4 or delphi5

N/A
08-28-2000, 06:24 AM
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

N/A
08-28-2000, 09:30 PM
thanks a lot for that it saves me a re-invention of wheel .