Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro expansion of view parameter
Message
De
21/07/2003 08:44:07
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
21/07/2003 08:27:34
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00811862
Message ID:
00811967
Vues:
14
You may trick it by setting a local view on a rempte view.
as long as the local view is bound to your controlsources you me re use and redefine your remote view as long as you like.
IOW Define a local view that gets the data from the remote one. (In the moment of definition all what you nned is a cursor that looks like the remote view)
Later at using this, define the remote view at your needs for the moment. Get the data from the remote source. Use / requery your local view. If you need tho get another piece of remote data, close the remote view, redefine to your needs and get the data. Recquery the local view.

To write data ,you need to write from the local view into the remote view and from the remote one to the remote data.

This all sounds possible but I would avoid it.

If I was you, I would start a new thread asking how to handle remote data with the needs you have. (You will have better words) This will attract the right people.


Agnes

>Agnes, thanks for the reply.
>
>>>But this for native views.
>
>For your problem it seems that the &lcWhere is send to the remote source without expansion, what will cause the error. IOW I read the error message like: VFP will not expand the macro for remote views.>>
>
>That is my experience so far. Can anyone else confirm that macro parameter expansion is not possible for remote views, or is there a way around this problem?
>
>>>The only thing I have heard of are store procedures on the remote side. But I have never done things like this.>>
>Me neither, and I don't want to get into these things at this stage. I would rather concentrate on front-end development and leave the SQL stuff to the DBA staff.
>
>Regards,
>Alan
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