Xbasic

BUTTON.SET_PASSWORD Method

Syntax

.SET_PASSWORD( Old_Password as C, New_Password as C )

Arguments

Old_Password

The old password, if any.

New_Password

The new password.

Description

The .SET_PASSWORD() method sets or changes the button's password.

Example 

After setting the password for Button3, clicking the button causes the Enter Password dialog box to appear.

dim ptr as P
dim fld as P
ptr = form.load("Customer Information")
ptr.show()
fld = ptr.child("Button3")
fld.Set_Password("", "foo")
images/ME_BUTTON_SET_PASSWORD.GIF

Limitations

Desktop applications only.

See Also