Hi,
I have a dbf with records. I would like to add new fields, but I don´t know the function. Thank you.
Saludos / Regards,
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Hi,
I have a dbf with records. I would like to add new fields, but I don´t know the function. Thank you.
Use DbStruct() to retrieve the structure of the current DBF, modify the structure, use DbCreate() to create a new DBF based on the modified structure, copy the record from the original DBF, delete the original DBF and rename the new DBF.
EMG
Yes, I do as you said, but it would be faster to do
addfield (cdbf, cfieldname, cfieldtipe, len, dec)
There is no such function, as far as I know.
EMG
Thank you. That´s why I asked for it.
You can write such function yourself using the steps I listed above.
EMG
Hello Enrico,
I have this functions in my DBTOOLS included.
I will extract this from there and put it in the topic.
Best regards
Uwe ![]()