Sunday
Feb192012
SquidRetrieveData
- Retrieves and clears the first data element from a column in SQUID.
Prototype
char* SquidRetrieveData(int iSquid, char* sParam);
- Parameters
iSquid Squid Connection Handle sParam String containing the name of the column
- Return Values
char* Operation successful, data element retrieved "" 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");
SquidRetrieveData(iSquid, "NewColumn");
SquidDisconnect(iSquid);