SQUID Functions

 

  • The SQUID functions, and their examples, assume that the SQUID server has been started with an address of http://localhost:8000.
  • Validation of the function calls can be handled by checking the return value and calling SquidGetLastError().

 

Entries in SquidUpdateData (1)

Sunday
Feb192012

SquidUpdateData

  • Update data at the given column and index.

Prototype

int SquidUpdateData(int iSquid, char* sParam, int iIndex, char* sData);

  • Parameters
iSquidSquid Connection Handle
sParamString containing the name of the column
iIndexRow index to update (1-based)
sDataThe updated data
  • Return Values
0Operation successful
-1Error 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);