Sunday
Feb192012

SquidColumnSize

  • Returns the number of rows in the column.

Prototype

int SquidColumnSize(int iSquid, char* sParam);

  • Parameters
iSquidSquid Connection Handle
sParamString containing the name of the column
  • Return Values
>=0The number of rows in the column
-1Error occurred, call SquidGetLastError for details

Example

int iCount;
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, "NewColumn", "50");
iCount = SquidColumnSize(iSquid, "NewColumn");
lr_output_message("Rows in NewColumn = %ld", iCount);
SquidDisconnect(iSquid);