{TIMER}

Syntax

{TIMER=Timer_Name}

Argument

Type

Description

Timer_Name

C

The name of the timer event.

Description

The {TIMER} command generates timer events. The interval between events is specified by the {INTERVAL} command.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only

Example

dim cnt as N

cnt = 1

ui_modeless_dlg_box("{INTERVAL}",<<%dlg%

{timer=increment}

{interval=.05}

{progress=50cnt}

<close>;

%dlg%,<<%code%

if a_dlg_button = "increment" then

    cnt = cnt + 1

    if cnt = 100 then

        cnt = 1

    end if

end if

if a_dlg_button = "close" then

    ui_modeless_dlg_close("{INTERVAL}")

end if

%code%)

This example displays a message box for 5 seconds.

ui_dlg_box("Message",<<%dlg%

{size=3}{timer=close}{interval=5}

This message will display for 5 seconds...

%dlg%)

See Also

Xdialog Commands, {INTERVAL}