Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Pete Sass
 To: Patrick Dowd
  Where is Patrick Dowd?
 California - United States
 Patrick Dowd
Subject: RE: i like that any user can't modifed...
Thread ID: 16081 Message ID: 16092 # Views: 0 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Tuesday, October 08, 2002 10:55:36 PM         

> > i like that any user can't modifed data in my form
> > Perquin de Leon
> > mp200
> Perquin, are you asking a question?
> Patrick

I you do not want data modified in a form... then you set the all textboxes and data display controls
to enabled=.f.
If you want only some users only to have access to add, edit, delete records then you need a userID
and Password login process at the beginning of your application with rights decided upon within
the userID table. Based upon these login rights cmdbuttons on all forms for Add, Edit, or Delete
are either enabled or disabled in the Init event of the forms.

In cases like this it is best to sub-class the VFP form class and generate all your forms from the
sub-class you created. In your mybaseform class you can add the code and this will be inherited
down to forms you build with you own mybaseform sub-class.

If you can be a little more specific with you question and we can help....!

Pete from the Great White North ! (Only in Canada, ay...) Over and Out ...


i like that any user can't modifed... Posted by manute97 perquin @ 10/8/2002 10:06:25 PM
RE: i like that any user can't modifed... Posted by Patrick Dowd @ 10/8/2002 10:41:38 PM
RE: i like that any user can't modifed... Posted by Pete Sass @ 10/8/2002 10:55:36 PM