DoDialogGetDouble

Prototype

Matrix DoDialogGetDouble( Matrix mUserInput, String sTitle, String sMessage )

Return Value

The return value is 1 on success or 0 on failure. If the user clicks Cancel or closes the dialog box, the return value is 0.

Parameters

Matrix mUserInput
Upon successful return, this matrix contains the value entered by the user.

String sTitle
The title of the dialog box.

String sMessage
A message that appears at the top of the dialog box.

Remarks

This module displays a dialog box that prompts the user to enter a number. The dialog box accepts any valid double-precision floating-point number or a single period character representing a missing value.

Example
title = "Number of Iterations";
message = "Please enter the number of iterations:";
ok = DoDialogGetDouble( x, title, message );
if ok then
    print x;
else
    print "Function failed";
See Also

DoDialogModifyDouble