Xbasic

FORM.QUERY_MODE Function

Syntax

.Query_Mode(C Mode)

Arguments

Mode

The query mode to use. Possible values are:

"Filter" = Displays the Query by Form screen that allows users to enter filter criteria.
"Order" = Displays the Query by Form screen that allows users to enter sort criteria.

Description

The .QUERY_MODE() method switches the Query_by_Form form to either "Filter" or "Order" mode.

Example 

This script is attached to a button. It puts the form into Query by Form mode, then switches to the Order screen.

parent.query_by_form()
parent.query_mode("Order")

Limitations

Desktop applications only.

See Also