Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted record shows in my form. It shouldn't
Message
De
25/01/2013 14:27:08
 
 
À
25/01/2013 14:19:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01564108
Message ID:
01564131
Vues:
51
>>>Simple form, one table.
>>>
>>>Set delete is on in the init of that form.
>>>
>>>First record of that table is deleted but is shows in the form.
>>>
>>>When records other than the first one in that table are deleted they don't appear in the form as expected.
>>>
>>>Anyone can help me with this weird behavior?
>>
>>What if you GO TOP of the table after the SET DELETED?
>
>This works... but I don't like it
>
>I never put a GO TOP before in any form. Why the heck that problem occuring now?

Because you're table is already open and on the first record when you SET DELETED ON, which won't reposition the record pointer.

The other comment to put SET DELETED in load() is probably what you want to do then, so when the table is opened it goes to the first undeleted record automatically.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform