How to Call a Lookup Dialog
Lookup windows are called from query columns that are defined as a foreign key in a relationship.
Lookup dialogs can be called from inserted controls like text boxes, both from windows and from dialogs. This is especially useful when creating lookup functionality in dialogs, as in this example.
To call a lookup dialog from a dialog field:
using capitals, e.g.:
The reason you need to do this is that the WindowCreateLookupDialog method is exposed by the column display control, not by the window as a whole.
The method call now looks like this:
Variables.Text_Box_1.TextBox.WindowCreateLookupDialog(<Lookup Dialog class name>)
The lookup window does not support function keys such as F2 and F3, but it will take on the icon toolbar from the Lookup Dialog style sheet class.
For ease of design and maintenance, start by creating a special lookup dialog subclass.