Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse bug??
Message
De
07/06/2007 14:08:16
 
 
À
06/06/2007 14:41:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01231066
Message ID:
01231387
Vues:
10
>I have been having trouble lately with a browse command causing a shift in the current work area. For example:
>
>
>set filter to PermID == lcPermID and (LoCWW > 7 or HiCWW > 7 or LoCWWHrs > 24 or HiCWWHrs > 24)
>go top
>if ! eof()
>	messagebox("The following records need to be corrected for CWW > 7 or CWWHrs > 24. ")
>	browse && shows table1
>endif
>set filter to
>
>brow title 'Get ready'   && shows table2
>set filter to PermID == lcPermID and upper(valid) = "NO"
>go top
>
>I can't imagine what's causing this unless my installation has become corrupted somehow. Has anyone else ever experienced this? This is happening throughout my application in various routines and prg's.

When you do browse, you remove focus from some control at least, so it may trigger some event code (your own or internal) that may change active work area. The common practice (since VFP replaced FPW) is to identify work area when it is needed, e.g.
SET FILTER TO... IN mytable
Or
GO TOP IN mytable
etc.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform