InputNumber(Prompt: String[, Title: String, Default: String,Domain: String, CurrencyCode: String]): Number
Displays a message, User must input a valid number or click a button, returns a number from the number control.
Notes: If User clicks OK or presses Enter, InputNumber function returns what is in the number control. If User clicks Cancel or presses Esc, function returns Null.
InputNumber function syntax has these named arguments:
Parameter |
Description |
|---|---|
Prompt |
Required. String expression displayed as the message. |
Title |
Optional. String expression displayed in the title bar. If you omit title, the application name is placed in the title bar. |
Default |
Optional. Number value displayed in the number control as the default response if no other input is provided. If you omit default, the value is zero. |
Domain |
Optional, Domain to be applied to the number. Valid domains are listed in Domains. |
Currency Code |
Optional. String expression representing the Currency Code for the number. Domain must be set to either Amount, Price, Cost Price or Sell Price. |
Warning: If you select a Domain with no decimal places, the decimal place will be ignored by the system. For example, if a User enters 4.55 in a field with no decimal places, the system will return 455.
See also Scripted Form InputNumber method and Input Grid InputNumber method.