Displays a dialog box asking the user for a string. The string is displayed as a password (a series of asterisks). The supplied default string is returned (unaltered) if the user cancels the dialog.
Parameters
Message Text |
The message displayed in the dialog box. |
Title Text |
The title displayed in the dialog box. |
Minimum Length of String |
The minimum number of characters the string must have. |
Maximum Length of String |
The maximum number of characters the string can have. |
Default String |
The initial value in the message box which can be changed by the user. |
Format
Ask_String_Password ("Enter a string", "Ask_String_Test", Minimum Length of String, Maximum Length of String, Default String)
Return Value
Returns the string supplied by the user.
Example
Script(Ask_String_Password_Test)
String(strEntered)
Activate(From_Menu)
strEntered = Ask_String_Password("Enter a password", "Ask_String_Password_Test", 1, 99, "")
Ask_OK(strEntered, "The password is")
Return
See Also
String_Set, String_Combine, String_Left, String_Right, String_Middle, String_Upper, String_Lower, String_Replace, String_Only_Characters, String_Strip_Characters, String_Trim_Spaces_Start, String_Trim_Spaces_End, Number_To_String_Binary, Number_To_String_Octal, Number_To_String_Decimal, Number_To_String_Hexadecimal_Lowercase, Number_To_String_Hexadecimal_Uppercase, Ask_String, Ask_String_Uppercase, Ask_String_Lowercase, String_Equal
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other