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
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