Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table picking up bottom record
Message
 
À
24/09/1999 11:09:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00268518
Message ID:
00268585
Vues:
18
>hello:
>
>I'm trying to update my users table when they log in to my application
>with the date and time, it does this but also updates the last record(the last user) in my users file with the date and time. when I step through in the debugger it is on the correct record, why would it also go to the bottom of the file and update this user as well?
>Here is my code which is in the valid of my command button(enter button)
>Any input would be appreciated. Thanks.
>
>If upper(allt(ThisForm.text2.value)) = upper(allt(Users.Password))
> select users
> set order to username
> crec= recno()
> go crec
> User = Users.c_id
> useview = Users.view
> useupd = Users.update
> replace users.date_in with DATE(), users.time_in with TIME(), users.date_out with { / / }, users.time_out with ""
> Thisformset.Catstoolbar1.visible = .T.
> Thisformset.frmmain.visible = .T.
> thisformset.form2.visible = .F.
>
> Else
> =messagebox("Invalid Username and Password, Try Again !"),16, "CATS")
> Return
> Endif

Why the need to use GO TO command still? As I see it, the pointer already points to the current user.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform