Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building a Conditional Variable
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344079
Message ID:
01344141
Views:
16
>Hi,
>I'd create a 'FilterCondition' class containing a string collection (one for each 'individual' filter condition) and a BuildFilter() method that concatenated them all together when needed. The method to add individual conditions to the collection would just need to check the existing collection and only add conditions that were not already there. An additional benefit would be that it would be simpler to remove individual conditions.
>
>Regards,
>Viv

Good idea.

But I don't understand why

myField = 'MyValue' AND myField = 'MyValue' can fail even if the same condition would be repeated twice.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform