>My application requires logon security at the form level. An easy way to do this is by creating a login class based on a form class and instantiating the class during the init() of the form that needs to be opened. If the user doesn't provide the right password, the init() returns false. Is there a way that would require less coding? I have only 16 hours to contract this. Any help appreciated.
Well, if this is at the form level then I suppose certain forms will require a logon to proceed. So, you will probably want to create a property ThisForm.lLogon in the form which will fire the login form is set to .T.
In your baseform, I suppose you have one, in the Init(), you will check for that property. If set to .T., you call DO FORM LOGON TO llProceed WITH ThisForm.Name. Your logon form will then return a value which you will compare in your BaseForm::Init(). If .F. then you RETURN .F. in the Init().
So, you the only thing you have to do in each of those form, is to set the property ThisForm.lLogon to .T.
In the form LOGON, you can then have a PARAMETER in the Init() which you can take action on depending on the form that call it. This may be useful in the case you have a separate authorized users depending on certain forms.
Hope that help.