Displays a dialog box prompting the user to enter a string value.
Rhino.StringBox ([strMessage [, strString [, strTitle [, arrPos]]]])
strMessage |
Optional. String. A prompt or message. |
strString |
Optional. String. A default string value. |
strTitle |
Optional. String. A dialog box title. |
arrPos |
Optional. Array. A 2-D screen point that identifies the upper left corner of the dialog's initial position. |
String |
The string value if successful. |
Null |
If not successful, or on error. |
Dim strLayer
strLayer = Rhino.StringBox("New layer name" )
If Not IsNull(strLayer) Then
Rhino.AddLayer(strLayer)
End If