CREATE DATABASE testMacro CREATE TABLE testMacro (f1 I) APPEND BLANK APPEND BLANK pFilter=".T." CREATE SQL VIEW exampl AS SELECT temp.* FROM testMacro temp WHERE &?pFilter DBSetProp("exampl","View","ParameterList","pFilter,'C'")It means that even if you do :
USE testMacro!exampl NODATAYou'll still need to have the variable pFilter in scope ! That behaviour was not happening in previous VFP versions. The problem is: I can't use VFP 9 because this new behaviour breaks existing application created in VFP 8. I wished we had a "SET ..." command allowing to bypass this new behaviour. This behaviour should be added in "Critical changes" section of the documentation or at least in the readme file.