Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No table is open in the current work area
Message
From
08/01/2008 10:09:38
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
08/01/2008 09:46:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01280061
Message ID:
01280197
Views:
25
>What's wrong with Views or CAs?
>
>A simple REQUERY() or Cursorrefresh would do it.

>
>Nothing. That works too but it is more difficult to implement if the where clause must change dynamically. Views are fine if the filter condition is always on the same field - that is "where somefield = somevalue". But is the where clause must change on the fly - "someother field = someother value" - it is a little easier to implement by using a cursor.

View and macrosubstitution will do pretty fine. (Engine to 70 for what I remember). It's a little bit cruel, I know.
Anyway, I would suggest the following:
The recordsource is a view

The source of the view is a cursor.

The cursor is created on the fly and the view will be refreshed afterwards.

So the view will deal with all needed to refresh the object, and you are free to generate the cursor.

Normaly I use a CA. They encapsulates the query in a much better way.

Never mind. As long as it works ... <g>

Agnes
AFK
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform