addToNumRecordsScraped
void session.addToNumRecordsScraped ( Object value ) (enterprise edition only)
Description
Add to the value of number of records scraped.
Parameters
- value Value to be added to the count. Usually a integer but if it is given a string (e.g. "10") it will try to transform it into an integer before adding.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
4.5 | Available for enterprise edition. |
Examples
Record Number of Records Scraped
// Adds 10 to the value of the number of records scraped.
session.addToNumRecordsScraped( 10 );
session.addToNumRecordsScraped( 10 );
Have session record each time a DataRecord exists
// In script called "After file is scraped"
// Adds number of DataRecords in DataSet
// to the value of the number of records scraped.
session.addToNumRecordsScraped( dataSet.getNumDataRecords() );
// Adds number of DataRecords in DataSet
// to the value of the number of records scraped.
session.addToNumRecordsScraped( dataSet.getNumDataRecords() );
See Also
- getNumRecordsScraped() [session] - Get how many records have been scraped.
- setNumRecordsScraped() [session] - Set how many records have been scraped.
- resetNumRecordsScraped() [session] - Sets the number of scraped records to zero
scraper on 07/16/2010 at 4:54 pm
- Printer-friendly version
- Login or register to post comments