Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution on parameterized view in VFP 8 don't
Message
From
22/07/2003 05:01:47
 
 
To
21/07/2003 15:58:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00812113
Message ID:
00812257
Views:
23
Gracias Alex pero no se trata de eso.
Se trata de crear un vista parametrizada cuyo valor vaiable no sea un valor sino una condición entera: la cláusula where.
En versiones anteriores podías hacerlo. Un ejemplo:

create sql view prueba as select * from deuda where &?mycondition order by 1

mycondition = "codigo = 25"
requery("prueba") && trae los registros del campo1 25
mycondition = "nombre = 'pepe'"
requery("prueba") && trae los registros del nombre 'pepe'

Si quito la marca de interrogación, simplemente realiza la macrosustitución en el momento de crear la vista y me ignora el valor de 'mycondition' en el momento de traer los datos.


>>We have worked in previous VFP versions with macro sustitution in parametrized views as:
>>create sql view ... as select ... where &?mycondition ...
>>This is not working on VFP 8. Have we losed it forever?

>
>Try it without the question mark
>
>create sql view ... as select ... where &mycondition
>
Saludos,
A.G.P.
---------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform