Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter cleared when debugging
Message
De
25/11/2002 11:57:15
 
 
À
25/11/2002 11:25:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00726483
Message ID:
00726501
Vues:
16
>hello all
>
>VFP 7.0 SP1
>
>i have form with many fields and in code i set filter to table based on the some input on the screen like set filt to cc+var+year=thisform.cc.value+thisform.var.value+thisform.year.value , but for some reason this logic doesn't work so i set a breakpoint in the program , after reaching the breakpoint when i switch to data session window to see if the filter is applied i get a status bar message Filter Cleared and it displays blank ,
>
>so how to avoid this.

Don't use an object reference in a filter; the object context can (and in the debugger, does) shift and the filter expression becomes indeterminate. Either use a memvar that remains in scope for the entire life of the filter regardless of the active object, or convert the expression to a literal.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform