Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid opening a form with the wrong record ?
Message
De
19/07/2001 14:34:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00532330
Message ID:
00532770
Vues:
12
>Hi Steve,
>
>Ran across the same thing, and here is what I did...
>
>In the init of the form, the first thing I put...
>Go bottom
>skip 1 && so the form shows without any data
>thisform.show && to show the "phantom" record until a good one is found.
>
>HTH,
>
>Ron

Yep, basically what I do (I have it a function called gotoEof() ). BTW, your method will crash on the SKIP statement if the table is empty. You need to check for eof()...
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform