Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'set filter to' in valid event?
Message
De
27/02/2000 22:26:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338266
Message ID:
00338268
Vues:
10
What's illegal about it is that the filter is going out of scope the minute you leave that textbox. "This.Value" is being reinterpreted as something other than expected.

If you really must use a filter (yuck), consider setting an application object or form property in the Valid and basing the filter on that.


>I have a textbox and in the valid event I am trying to set a filter on the current table.
>Code in Valid:
>
>select mytable
>set filter to mytable.field1=this.value
>
>Field1 is c10. Every time I try to exit the field I get an error stating operator/operand mismatch.
>BTW - I've tried LostFocus with the same results. Is this not a legal operation?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform