Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET FILTER TO x RELATION
Message
From
14/05/2007 06:50:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/05/2007 03:00:16
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01224893
Message ID:
01225164
Views:
23
>>Set filter is greatly enhanced but I still keep it in my "commands not to use list":)
>
>why may i know ? and what is the alternative? SQL joins?
>
>any specific conditions where it leads to errors ?
>
>Thanx
>suhashegde

There are reasons more than I'd list here:
1) Performance, no matter how much it's enhanced still not as performant as other ways.
2) Reliability. With undeterministic expressions + a grid you might end with something that would make you cry "what's happening". Visually it happens and hard to solve.
3) Record pointer movement. Where it's really. You generally think where it should be but be carefull.
4) No good reason to use.

SQL (or views which is basically just another SQL) is one but not my preference. If you can do it, then traditional xBase relations and set key to is the simpliest and fastest. Not always you have a chance that way, then SQL or View might be required.

A simple demo filter expression could be:

set filter to order_date = date()

It sounds to be very innocent, isn't it:) Beware that's an evil.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform