Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP : Grid turns blank when ...
Message
De
04/01/2000 01:58:57
 
 
À
04/01/2000 00:17:31
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00312149
Message ID:
00312186
Vues:
21
>I had similar problems when skipping between parent records after manipulating child records in a Grid. After DAYS AND DAYS I solved the problems by selecting the PARENT table and the refreshing the whole page:
>
>blah blah blah
>select orderdetails && child table
>replace last_mod with date() && make change in child table
>blah blah blah
>
>SELECT ORDERS && Parent table
>THISFORM.REFRESH && refresh everything
>
>
>I hope this helps.
>
Hmmm, I don't dispute this approach helped you in your case, and it might help Ralf, but it's very much a sledgehammer approach. Depending on how data are buffered, if transactions are in effect etc. it could cause other problems.

IMO, to properly solve this problem Ralf has 2 options:

1. Step through the app in the Debugger and examine its state when the error arises. This is, by far, the preferred solution.

2. Post detailed information so other UT members have a chance to offer meaningful advice, e.g.

- Is he using a commercial framework?
- Is he using base VFP or 3rd party classes?
- Are the form grid(s) based on tables or views?
- How are they buffered, if at all?
- Is a private datasession in use?
- What is the code that modifies the child table?
- What is the code that attempts to save the modified child table and/or move the record pointer in the parent table?
- What modifications have been made to the base methods of the form and its controls?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform