Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFilter and special formatting
Message
De
11/09/2002 12:54:38
 
 
À
10/09/2002 19:38:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Divers
Thread ID:
00699127
Message ID:
00699421
Vues:
36
Hi Sandi.

>I'm using the Query.getfilter to allow the users to enter a filter for reports. I have a few fields that need to be specially formatted in order to return a match. For example my customer # field is C(10) and if my clients are using auto numbering the number is stored as ' 1' or ' 889898'. My index is IIF(VAL(custno)=0,custno,PADL(STR(VAL(custno),10),10))
>
>How/where would I change the filter being built from upper(custno) to my IIF statement so it can find a match in my tables?

You can change the cFieldExpr property of the field object in the fields collection. That expression is used for the filter. Normally it contains just the field name, but you can change it to any valid expression.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform