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 SquidClearRow (1)

Sunday
Feb192012

SquidClearRow

  • Clears/removes a row from all columns (all tabs).
  • If a particular column does not have enough rows, this column is ignored (no error).

Prototype

int SquidClearRow(int iSquid, int iIndex);

  • Parameters
iSquidSquid Connection Handle
iIndexRow index of the row to clear/remove (1-based)
  • 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", "20");
SquidSendData(iSquid, "NewColumn", "100");
SquidSendData(iSquid, "OtherColumn", "50");
SquidSendData(iSquid, "OtherColumn", "30");
SquidSendData(iSquid, "OtherColumn", "80");
SquidClearRow(iSquid, 1);
SquidDisconnect(iSquid);