Sunday
Feb192012
SquidClearData
- Clears all data in a row given the row index.
- Returns the data that was removed from SQUID.
Prototype
char* SquidClearData(int iSquid, char* sParam, int iIndex);
- Parameters
iSquid Squid Connection Handle sParam String containing the name of the column iIndex Row index of the row to clear (1-based)
- Return Values
char* Operation successful, data that was removed "" 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");
SquidClearData(iSquid, "NewColumn", 1);
SquidDisconnect(iSquid);