Xbasic
UI_GET_PASSWORD Function
Syntax
Result_String as C = ui_get_password(C title ,C prompt [,C default_choice [,C password_character ]])
Arguments
- title
The title of the dialog box.
- prompt
The caption next to the data entry field.
- default_choice
Optional. Default = "". The default value to display.
- password_character
Optional. Default = the actual characters typed. The character to display as the user types.
Description
UI_GET_PASSWORD() creates and displays a dialog box to prompt for a password. The Result String will be empty ("") if the Cancel button is selected.
Example
Prompts the user for a password and beeps if the password is incorrect.
password = "Alpha5"
user = ui_get_password("Password","Enter the password","","&")
if user = "" then
end
end if
if user == password then
ui_msg_box("Password","Accepted.")
else
ui_beep()
ui_msg_box("Password", "Password invalid.")
end
end ifLimitations
Desktop applications only.
See Also