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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing data to the ClientDataSet table

Status
Not open for further replies.

CarrahaG

Programmer
Mar 25, 2007
98
AW
Hello,

We are having problems writing data to a ClientDataSet table.

The data is defined as follows:

[tab]Table Name: cdsPRCPARAM

[tab]Field Type Size
[tab]--------- ---------- -----------
[tab]PRCID AutoInc
[tab]PRCFROM String 1
[tab]PRCTO String 1


When we write to the data file as follows:

[tab]cdsPRCPARAM.Insert;
[tab]cdsPRCPARAMPRCFROM.Value := '1';
[tab]cdsPRCPARAMPRCTO.Value := '2';
[tab]cdsPRCPARAM.Post


It inserts a blank record but does not insert the strings in the PRCFROM and PRCTO fields nor does it insert an autoincrement value in the PRCID field.

Can you tell us how we can use the AutoIncrement field correctly starting at the number 1? Also, why is it that it does not insert the strings in the remaining fields?

The file and fields are set for read/write.

Regards,
Georges

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top