RhinoGet.GetInteger Method (String, Boolean, Int32)

RhinoGetGetInteger Method (String, Boolean, Int32)

Easy to use number getter.

Namespace:  Rhino.Input
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Result GetInteger(
	string prompt,
	bool acceptNothing,
	ref int outputNumber
)
Public Shared Function GetInteger ( 
	prompt As String,
	acceptNothing As Boolean,
	ByRef outputNumber As Integer
) As Result

Parameters

prompt
Type: SystemString
command prompt.
acceptNothing
Type: SystemBoolean
if true, the user can press enter.
outputNumber
Type: SystemInt32
default number is set to this value and number value returned here.

Return Value

Type: Result
Commands.Result.Success - got number Commands.Result.Nothing - user pressed enter Commands.Result.Cancel - user cancel number getting.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also