Xbasic

{TITLE}

Syntax

{TITLE=title_text}

Arguments

title_text@variable_nameCharacter

A string of text that is used as the title. Can be a character string or a variable. If a variable is used, the syntax is {TITLE=@variable_name} where 'variable_name' is the name of the variable that contains the title.

Description

The {TITLE} command can be used to create dynamic titles for Xdialog.

Example

dim dyn_title as c = "The Title"

dim dlg as c =<<%dlg%
{title=@dyn_title};
Title [.80dyn_title!change];
{line=1};
{justify=right}<&Ok>
%dlg%

dim code as c =<<%code%
if a_dlg_button = "change" then
    a_dlg_button = ""
end if
%code%

ui_dlg_box("dynamicTitleExample",dlg,code)

Limitations

Desktop applications only

See Also