QUERY.REFRESH Function
Syntax
Result_Flag as L = .Refresh()
Description
Force repaint of control.
Discussion
The .REFRESH() method refreshes a query if the table the query is based on has changed. The method returns .T. (TRUE) if rebuild was needed. Note : A query is different from an index. Alpha Anywhere automatically synchronizes an index with table data. A query is static and must be deliberately refreshed to reflect table changes.
Example
dim tbl as P dim qry as P tbl = table.open("test") query.filter = "ID <> ''" query.options = "D" qry = tbl.query_create() ? qry.refresh() = .T.
See Also