Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active-X friendly splitter classes
Message
De
05/08/2004 19:05:44
 
 
À
05/08/2004 13:47:32
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00930706
Message ID:
00931182
Vues:
25
Hi Mike, Jim
PMJI, but to be really defensive you need something like...
>lcStr = '"' + UPPER(m.lcVariable) + '"'
>SET FILTER TO UPPER(field) = &lcStr
because your filter will now still work even when the variable goes out of scope, which it would if you were doing this in the load event of a form for example

>
>SNIP
>
>
>In addition, it is often faster to
>
lcVariable = UPPER(m.lcVariable)
>SET FILTER TO UPPER(field) = m.lcVariable
>than to
SET FILTER TO UPPER(field) = UPPER(variable)
>
>It may be insurance, but it isn't *necessary*.
>
>BTW. How come you're not requesting they document the case of the returned value?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform