Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.12 KB

AngDialog.md

File metadata and controls

52 lines (42 loc) · 1.12 KB

AngDialog

Description

Function AngDialog displays a dialog box which requests the user to enter an angle value. The dialog automatically screens for valid numeric input, and will accept supported angle formats.

FUNCTION AngDialog(
				request : STRING;
				default : STRING): REAL;
def vs.AngDialog(request, default):
    return REAL

Parameters

Name Type Description
request STRING Dialog user prompt string.
default STRING Default value for input field.

Examples

VectorScript

AngleValue := AngDialog('Enter an angle value:', '0d');

Python

AngleValue = vs.AngDialog('Enter an angle value:', '0d')
resultVal := AngDialog('Example', 'Example');
import vs

# Function AngDialog displays a dialog box which requests the user to enter
# an angle value.
request = 'Example'
default = 'Example'

value = vs.AngDialog(request, default)
vs.Message('AngDialog returned: ' + str(value))

Version

Availability: from All Versions

Category