FutureBasic Logo

<<    Index    >> FutureBasic 5

dialog   statement



Syntax:>
dialog = expr%


Description:
This statement posts a dialog event of type _userDialog to FutureBasic's internal dialog queue. This allows your program to post "custom events" to itself. After you post a _userDialog event, you can use the dialog function to subsequently read the event from the queue (normally you'll do this from within the dialog-event handling function designated by an on dialog statement). If you retrieve the event from the queue as follows:
evnt = dialog(0)
id = dialog(evnt)

then evnt will be set to the value _userDialog (which equals 23), and id will be set to the value of expr% that you specified in the dialog statement.
To learn how to pass additional information associated with an event of type _userDialog, see the descriptions of the event% and event& statements, and the event% and event& functions.

See Also:
dialog function; on dialog; HandleEvents