Function IntDialog displays a dialog box which requests the user to enter an integer value.
IntDialog automatically screens for valid numeric input.
FUNCTION IntDialog(
request : STRING;
default : STRING): INTEGER;def vs.IntDialog(request, default):
return INTEGER| Name | Type | Description |
|---|---|---|
| request | STRING | Dialog user prompt string. |
| default | STRING | Default value for input field. |
END;
7: BEGIN {Shape 1 pulldown}
tab_i := 1;
GetSelectedChoiceInfo(dialog_ID, 7,0,temp_i,temp_s);
IF temp_i = 4 THEN gNSides := IntDialog(GetPluginString(5008),num2str(0,gNSides));
IF gNSides > 20 THEN BEGIN
gNSides := 20;
alrtdialog(getPluginString(5009));
END;import vs
# Function IntDialog displays a dialog box which requests the user to enter
# an integer value.
request = 'Example'
default = 'Example'
resultN = vs.IntDialog(request, default)
vs.Message('IntDialog returned: ' + str(resultN))Availability: from All Versions