In an application program (visual foxpro) is common if the first time the program is run for a user login form will appear. One method is to run the login form first and then the main form. There is also the method still run form the main form at the same time raise login first before the user can access other programs. Here are some tips for both methods:

  • Set properties Form login

windowstype = Modal

ShowWindow = 1 - InTopLevelForm

  • Declare variables to accommodate the public the results of the login form on the main form

FormUtama.Load:

Public n_login

n_login = 0

  • Run the login form on the main form activate

FormUtama.Activate :

IF n_Login = 0

DO FORM formlogin.scx

ENDIF

in the form log added:

cmdOK.click:

n_Login = 1

Have a nice try…

Related posts:

  1. Debian upgrade: gdm cannot load after login
  2. Visual Foxpro : Do’s and Dont’s
  3. enabled root login to gnome
2 Responses to “Load Form Login VFP”
  1. saya mau tanya

    saya sedang buat tugas akhir tapi saya belum pernah di ajarin ma dosen tentang form login

    saya minta tolong untuk script’a menggunakan program Foxpro…

    ….Terima Kasih….

  2. pada dasarnya sama dengan contoh diatas, kalo yang anda maksud Foxpro Dos berarti harus disesuaikan dengan script untuk Foxpro Dos.
    Silahkan….:)

Leave a Reply



Modern Bedroom Furniture

Click Here to Advertise on My Blog

Add to Technorati Favorites

blogarama - the blog directory