Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: naveed ahmad
  Where is naveed ahmad?
 peshawar
 Pakistan
 naveed ahmad
 To: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 Tags
Subject: RE: password problem
Thread ID: 393485 Message ID: 393665 # Views: 33 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Saturday, December 21, 2013 7:47:51 AM         
   


> > hi Experts.
> > i am facing one problem that in invoice form when someone want to change it then could not change without permission for this purpose i took text box for password and coding as following
> >
> > LOCAL m.pword , m.wrd
> > thisform.contpword.Visible = .T.
> > thisform.txt_pword.Visible = .T.
> > thisform.lbl_pword.Visible = .T.
> > thisform.txt_pword.SetFocus()
> >
> >
> > m.wrd = thisform.txt_pword.Value
> > SELECT table
> > GO top
> > m.pword = pass
> >
> > IF m.wrd = m.pword
> > thisform.contpword.Visible = .F.
> > thisform.txt_pword.Visible = .F
> > thisform.lbl_pword.Visible = .F.
> >
> > thisform.mthd_change()
> > ELSE
> > MESSAGEBOX("Sorry, you have not authority to change it",0+64)
> > thisform.contpword.Visible = .F.
> > thisform.txt_pword.Visible = .F.
> > thisform.lbl_pword.Visible = .F.
> > ENDIF
> >
> > when i run it then messagebox appear first and cursor does not go to text box. what wrong in it.
> > please guide me with kindness.
> > thanks in advance
> > regards
>
>
> Let me give you another approach.
>
> I do it differently where I create a logical field for locking/unlocking an invoice for editing. When an invoice is saved, it is seeded with .T. value.
>
>
>
> When a staff need to do some adjustment on an invoice, they have to pop an admin via a LAN messenger or call him/her via extension phone to unlock it (Unlock button is disabled for non-admins). The admin can then access said module from within her unit (without leaving his/her room and going to the unit for password override encoding which I presume your approach will require) and unlock said invoice.
>
> Login name of the admin who has unlocked it and the date is recorded by my app for future tracking. After unlocking, the staff can now do adjustments on said invoice because the update button will now be enabled on said invoice.
>
> When everything is ok, Update button is clicked and the invoice is locked again. The availability of the Update button is dependent on the lock status of an invoice. If it is locked, it is disabled and unlocked enabled.
>
>
>
>
>
> https://vfpx.codeplex.com/releases/view/99045
> http://sandstorm36.blogspot.com

sir thanks for reply. you have good idea to access it, great

ENTIRE THREAD

password problem Posted by naveed ahmad @ 12/19/2013 8:06:11 AM
RE: password problem Posted by David Mustakim @ 12/19/2013 8:36:38 AM
RE: password problem Posted by naveed ahmad @ 12/19/2013 9:24:14 AM
RE: password problem Posted by David Mustakim @ 12/19/2013 9:40:06 AM
RE: password problem Posted by naveed ahmad @ 12/19/2013 10:01:06 AM
RE: password problem Posted by David Mustakim @ 12/19/2013 10:03:27 AM
RE: password problem Posted by Tore Bleken @ 12/19/2013 11:38:04 AM
RE: password problem Posted by Ayaz Ahmad @ 12/19/2013 9:00:38 AM
RE: password problem Posted by David Mustakim @ 12/19/2013 9:00:39 AM
RE: password problem Posted by Ayaz Ahmad @ 12/19/2013 9:12:43 AM
RE: password problem Posted by David Mustakim @ 12/19/2013 9:16:32 AM
RE: password problem Posted by Stefanus Eddy @ 12/19/2013 6:32:32 PM
RE: password problem Posted by David Mustakim @ 12/20/2013 12:28:55 AM
RE: password problem Posted by Stefanus Eddy @ 12/20/2013 4:48:11 PM
RE: password problem Posted by Ayaz Ahmad @ 12/21/2013 8:48:06 AM
RE: password problem Posted by Jun Tangunan @ 12/20/2013 12:22:30 AM
RE: password problem Posted by naveed ahmad @ 12/21/2013 7:47:51 AM
RE: password problem Posted by Jun Tangunan @ 12/21/2013 11:45:57 AM