Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Password Validation
Message
 
To
11/05/2008 21:52:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01316257
Message ID:
01316343
Views:
14
>Wow that is cool it says Alias users is not found the .sbf file inside the .dbc is users.dbf the fields are userid, username and password so I don't understand the code I am still trying is Jim B. and again alias not found, here is a copy of the lines of code
>
>
>
>if Users.Password == PADR(ALLTRIM(thisform.txtPassword.value),LEN("Users.Password"))
>        else
>  endif
>RELEASE thisform
>DO FORM C:\HPRC\MANAGEMENT.SCX
>
>
>

Fred,

Find the code that opens the users file and make sure the file is getting openned and that is has the alias name you are expecting and that nothing is closing that file on you.

You can go into your form and put this in the Init event;
* Form Init
SET STEP ON
That will cause the debugger to open when you run your form. Now once the debugger is open in the watch window put USED("Users") and press enter. Now double click in the watch window margin beside the USED("Usesr") line to set a break point whenever the value of that expression changes. Now you can right click on the command window and type RESUME to resume the form running. The debugger will pop up and the code will be suspended whenever the USED() changes its value. That is when the file openned it willbreak and again when the file is closed. You need tofind out when the file is being openned (if it is being openned at all) and also when the file gets closed, in case it is being openned but then it gets closed again before your validation code runs.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform