Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution in sql views no longer possible
Message
De
14/01/2005 01:56:25
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00975746
Message ID:
00977065
Vues:
61
Hi gunter,

Well, it was only needed to explicitly tell VFP that it must evaluate the cWhere during requering the view at runtime.

If you did not include the ? and and variable cWhere does exist during creation of the view, it would just evaluate the cwhere at creation time (which of course leads to a fixed where definition), while we want one where cWhere is evaluated at design time.

Now in VFP9, it seems that you cannot omit the ? in the view definition, hence my comments.

Walter,




>
>>>It seems that omitting the ? in VFP9 is not supported. Don't ask me why. I'm as stumped as you are.
>
>Walter,
>
>>>>create sql view lvMacrotest as sele * from macrotest where &?lcMacrotest
>>I don't understand why this is this way.
>>- In VFP7 both strategies work (&cWhere and &?cWhere)
>>- In VFP8 only &cWhere works
>>- In VFP9 only &?cWhere weems to work
>><<
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform