this-> ViewALWLDB

(Caronte Pcode version 2.0)

Description

int this->ViewALWLDB (HashArray store, optional int how_many default100, optional int start default 0, optional string search default null,optional int col default 0);

Loads a view of the database of the auto light white list in the store HashArray, can limit the result to the how_many value, starting from the start value, looking for the search value, in the column col of the database.

Example.

Source:

#import( class , HashArray )

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

this->AddALWL("info@inrete.com","info@caronteantispam.it");
HashArray indexkey = new HashArray();
this->ViewALWLDB(indexkey,100,0,"",0);

for (int i = 0; i < indexkey->GetRecordCount(); i++)
{

this->Print(indexkey->GetByIndexS(i));

}

delete indexkey;

return 0;

}




Out:
1272442882(separator)info@inrete.com(separator)info@caronteantispam.it(separator)