Sunday
Feb192012
SquidUpdateData
- Update data at the given column and index.
Prototype
int SquidUpdateData(int iSquid, char* sParam, int iIndex, char* sData);
- Parameters
iSquid Squid Connection Handle sParam String containing the name of the column iIndex Row index to update (1-based) sData The updated data
- Return Values
0 Operation successful -1 Error occurred, call SquidGetLastError for details
Example
int iSquid;
lr_load_dll("SQUID-REST.dll");
iSquid = SquidConnect("http://localhost:8000");
SquidCreateColumn(iSquid, "NewColumn");
SquidSendData(iSquid, "NewColumn", "Data Row 1");
SquidSendData(iSquid, "NewColumn", "Data Row 2");
SquidSendData(iSquid, "NewColumn", "Data Row 3");
SquidUpdateData(iSquid, "NewColumn", 2, "New Data Row 2");
SquidDisconnect(iSquid);