Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetFilter and special formatting
Message
From
03/10/2002 15:59:26
 
 
To
11/09/2002 12:54:38
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00699127
Message ID:
00707533
Views:
31
Hi Doug,
I've been trying to figure out where to change the cFieldExpr property in the fields collection but I'm not sure where I should put the code - should I be looking at the sfgetfilter class or somewhere else?

Sandi.

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform