FindItems  Table

The FindItems function compares values from the source table and adds search results to the target table.

If erase is false, target table fields are not modified. Otherwise the target table is cleared and source table fields are added to it.

Syntax

Integer Table.FindItems(
     Table result,
     String field,
     String sign = "==",
     String value = "",
     Integer erase = true)

Parameters

resultThe target table to store results.Required
fieldThe name of the field.Required
signThe comparison sign.

Value list that can be used:
"==", "!=", "<", ">", "<=", ">=", "?="
Optional
valueThe value to compare.Optional
erase
true, false
Erase target table data and add all the same fields.Optional

Return value

The FindItems function returns the number of results.

Example

Integer i
Table results new
myTable.FindItems(results, "Job""==""Programmer")
for i=0 ; i<results.GetItemCount() ; i++
    // Your code here
end
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia