Xbasic
{LINKED}
IN THIS PAGE
Syntax
{LINKED= Dialog_Title }
Arguments
- Dialog_Title
Character. The name of the dialog box to link to.
Description
Creates external dependencies between separate xdialogs.
Discussion
The {LINKED} command creates external dependencies between separate xdialogs. The linked command is not directional. Which xdialog has the linked command makes no difference. The only requirement is that the linked-to xdialog exist before you create the linked-from xdialog.
Example
Click on a button. Not only does the variable refresh for the main xdialog, but for the xdialogs it is linked to. Modify the value of a control that shares a variable, the control gets refreshed in any linked dialogs.
' DEMO OF LINKED COMMAND ui_modeless_dlg_box("foo","[x] ",<<%code% if a_dlg_button = "" then a_dlg_button = "" ui_modeless_dlg_close("foo") else if a_dlg_button = "foo" then a_dlg_button = "" x = "foo" end if %code%) ui_modeless_dlg_box("bar","{linked=foo} [x] ",<<%code% if a_dlg_button = "" then a_dlg_button = "" ui_modeless_dlg_close("foo") else if a_dlg_button = "bar" then a_dlg_button = "" x = "bar" end if %code%)
Limitations
Desktop applications only
See Also