milestone (not supported in Axiell Collections)

Syntax

milestone (window_title, message, counter)

Arguments

window_title, message: text

counter: integer

Platform

Adlib for Windows, does not work in Axiell Collections (Collections ignores the command)

Meaning

This function shows a window containing:

a window title (entered in window_title )
a text (entered in message )
a counter (entered in counter )

By invoking this function with a different value for counter each time, the counter will start running. The function should therefore only be invoked if necessary for the progress of the executed action.

The milestone function must be invoked at least twice, as is apparent from the example below.

Example

counter = 0
while not (condition) {
 milestone ('Counter 1', 'Counter is on: ', counter)
 counter = counter + 1
}
milestone ('', '', -1)

Result

In the loop, the function is called for showing the incremented counter. After the loop, the window is closed by calling the function with two empty text arguments and a negative value for counter.