QueryRun.changed Method

Determines whether the specified data source has fetched a new value since the last call to the QueryRun.next method.

Syntax

public boolean changed(TableId table, [int occurrence])

Run On

Called

Parameters

  • table
    Type: TableId Extended Data Type
    The table defining the data source to check. If more than one data source is assigned to the same table, the second parameter can be used to specify which occurrence to use.
  • occurrence
    Type: int
    The data source to check; optional. If more than one data source is assigned to a given table, this argument can be used to determine which data source to check.

Return Value

Type: boolean
true if the specified data source has changed since the last call to QueryRun.next; otherwise, false.

Remarks

This method is useful when data sources are hierarchically structured. A more embedded data source may change many times (such as the customer transactions). This occurs every time that a less embedded data source (such as the customer table) fetches a new record (another customer).

The changedNo method can be used instead of this function.

See Also

QueryRun Class

QueryRun.changedNo Method

QueryRun.next Method