Pauses for user input of a whole number.
Rhino.GetInteger ([strMessage [, intNumber [, intMin [, intMax]]]])
strMessage |
Optional. String. A prompt or message. |
intNumber |
Optional. Number. A default whole number value. |
intMin |
Optional. Number. A minimum allowable value. |
intMax |
Optional. Number. A maximum allowable value. |
Number |
The whole number input by the user if successful. |
Null |
If not successful, or on error. |
Dim lngColor
lngColor = Rhino.LayerColor("Default")
lngColor = Rhino.GetInteger("Enter an RGB color value", lngColor, 0)
If Not IsNull(lngColor) Then
Rhino.LayerColor "Default", lngColor
End If