VFP how to get the login box, the code about the VFP page box

Updated on technology 2024-04-08
12 answers
  1. Anonymous users2024-02-07

    Create a form, then add two text boxes text1 and text2 to the form to enter the user and password, respectively. Then add two buttons, called OK and Exit.

    Let's say your username is called "user" and your password is "123".

    Add the following to the click event of the OK button.

    if <>"user" or <>"123"

    messagebox("Wrong username and password! Please re-enter")

    elsedo form main&&&This is the form that you run after you have successfully passed the verification.

    endifps: If you want to enter a password that no one can see, for example, if you enter a character and it will show "*".

    You can change none to * in the passwordchar attribute of text2 in the text box where you enter the password

    This is the easiest way to authenticate, and if you want to have multiple users, the last thing is to create a table with the user's name and password.

    Then verify that the user and password are in this table when logging in, and if so, and the password is correct!

  2. Anonymous users2024-02-06

    It is to use a form, two text boxes, one to enter a name, one to enter a password, two buttons, one to confirm, and one to cancel. Confirm the click** to verify the password, turn to the specified position after passing, otherwise an error will be prompted, and the cancel button will exit the program.

  3. Anonymous users2024-02-05

    Write ** in the activate event in page2.

  4. Anonymous users2024-02-04

    Right-click on the page box, select ", and a blue line will appear on the edge of the page frame, and then add a control to each page.

  5. Anonymous users2024-02-03

    Instead of adding the control to the first page, you add the control to the entire page frame......

  6. Anonymous users2024-02-02

    Note that you must select page1 and then put the button, not pageframe1.

  7. Anonymous users2024-02-01

    Right-click the page frame, select, and then click the second page tab.

  8. Anonymous users2024-01-31

    Try: use login form.

    if empty(

    messagebox("The username or password cannot be empty, please re-enter it",48,"System prompts")

    elselocate for alltrim (login table. username)==alltrim(;

    and alltrim (login form. password) ==alltrim(if found()

    messagebox("Success")

    elsemessagebox("The user or password does not exist",46,"System prompts")""

    endifendif

  9. Anonymous users2024-01-30

    In the top position of the page box, that is, all the data, select page2, and then the slag clear god page frame becomes a light blue frame line, and you can add the second table to page2

  10. Anonymous users2024-01-29

    You obviously didn't select the page box first and added** (it should be**control, ha, I guess you wrote it wrong).

    Open the form, click on the property window, there is a drop-down option box on it, use that to select your first page box, and then add**, the same selection of the second page frame is adding**, so that the key grid belongs to the page frame control.

  11. Anonymous users2024-01-28

    You take a look in the properties window, you can select the control at the top, you can select a page in the page box to do the dragging.

    No, the top of the properties window will show the name of the control you are operating, and there is a small button on the side, which is a drop-down button, click on it and select page1

  12. Anonymous users2024-01-27

    Right-click on the page box——— select page 1, and drag the table up.

Related questions
10 answers2024-04-08

Email registration.

First of all, you must log in to Xiaomi's official website**, and after entering the Xiaomi official website, click the registration button in the upper right corner to start registration. >>>More

19 answers2024-04-08

1) The host with Windows operating system can log in through remote desktop; (2) Virtual machines with Linux operating system can be connected in SSH mode. To learn more about service offers, click on the "****" customer service 222 below to answer for you.

1 answers2024-04-08

In Windows (Windows XP, Windows Vista, Windows 7), it is actually easy to implement automatic login users at boot. >>>More

2 answers2024-04-08

Win10 official version 1511 (10586,TH2) and subsequent versions have added the login background modification function, as shown in the figure below, after entering the "Settings lock screen", open "Show lock screen background on the login screen**" to modify. So, if you want to change the login background, just change the lock screen background. >>>More

9 answers2024-04-08

Windows XP login password viewing software, I just tried it and it really works.