Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repost - Search Expression needs UDF
Message
 
To
23/05/2001 10:25:10
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00510340
Message ID:
00510490
Views:
17
Hi Sandi,

I think your best bet here is to let the user enter the value and they have finished with the query. So basically right after your call to the Show(). Call another method that can go and fix that fields expression.

with Thisform
lcFilter = .oQuery.cFilter
.oQuery.Show()

** Your call to a custom method.
.CheckCustomerValue()
set filter to &lcFilter
.Refresh()
endwith

In your custom method you can check aQuery: an array of information about the current query.

So you can check and see if that field was even used in the query.
If so take the existing value, manipulate and replace it with the value you need. The following are the elements that you will need to work with.

oQuery.aQuery[lnI, 3] = is the cFieldName
oQuery.aQuery[lnI, 3] = is the Value

You can see what is in this array by looking at the SFGetFilter.CreateArrayFromQuery().

Thanks for you patience.

Yuanitta Morhart
Senior Developer
Stonefield Systems Group Inc.
Senior Consultant
Stonefield Systems Group Inc.
www.stonefield.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform