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 18:46:40
 
 
À
25/01/2013 14:33:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01564108
Message ID:
01564176
Vues:
54
>After posting the original message I put a "set step on" right after the definitions of all the sets (including set delete on) in the init method. Records shown in the data session grid were all right. I mean deleted records were not there. And after that resuming running of the app records appeared like they always should have appeared.
>
>Any idea on that behavior?

It's likely you're opening files through the data environment rather than explict USE statements in the form INIT -- so SET DELETED ON in form INIT is already too late -- the grid has already "captured" the table state. The suggestion to use GOTO TOP forces the rescan of the table (similarly you can use LOCATE). Likewise, the SET STEP ON in interrupting the program will likely cause the grid to implicitly rescan the table. If you're opening the file in the data environment, perhaps SET DELETED ON should be in the INIT of the data environment rather than the form INIT?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform