Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION TO to update a cursor
Message
 
 
To
15/08/2019 17:04:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01670104
Message ID:
01670120
Views:
41
>I haven't used SET RELATION / SET KEY etc this decade, and probably this century. I use SQL commands instead.
>
>I find SQL more readable and maintainable, and generally portable to other SQL backends. You can handle outer joins, NULLs etc which might be difficult to do reliably with the VFP ISAM engine.
>
>The vast majority of times when I've encountered code like this, it's ancient/legacy code: either converted dBASE, or from FoxBASE. In most cases I've found it easier to rewrite using SQL than to figure out how and where to tweak the legacy code. I don't miss SET RELATION one bit.
>
>I've never tested the speed vs SQL, but even if it's lots faster I've never had a use case where such an improvement would be important or meaningful.

Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform