Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic DBF Creation 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

I have hard coded the creation of of a database using DBCREATE(cDBFName, aDbf, "DBFNTX"). This works fine.

I am having trouble doing it dynamically. Specifically, how can I change the value of my array for the field specs.
// aDBF[TotalFields][FieldProps(4)]
local aDBF[5][4]

I think this is really a question on variables and array sizing. If I declare a local array (aDBF) for the structure how can I later set it to the proper number of fields to be created?



Thanks,

Michael42
 
TonHu,

AADD() is just what I needed to Dynamically create a table.

Thanks,

Michael42
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top