Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No table is open in the current work area
Message
De
08/01/2008 10:09:38
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
08/01/2008 09:46:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01280061
Message ID:
01280197
Vues:
27
>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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform