VS:StrDialog

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Function StrDialog, displays a dialog box which requests the user to enter a string value.
FUNCTION StrDialog(
request  :STRING;
default  :STRING) : STRING;
def vs.StrDialog(request, default):
    return STRING

Parameters

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

Example

VectorScript

PROCEDURE Example;
VAR
request, default, result :STRING;
BEGIN
request := 'User prompt string';
default := 'Default value';
result := StrDialog(request, default);
END;
RUN(Example);

Python

def example():
	request = 'User prompt string'
	default = 'Default value'
	result = vs.StrDialog(request, default)
example()

Version

Availability: from All Versions
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox