BUG: View Parameter Cannot Be Removed From Parameters List
ID: Q191698
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, version 6.0
SYMPTOMS
In a SQL View that has only one parameter, deleting the parameter through
the Parameter's list in the View Designer does not delete the parameter.
RESOLUTION
Delete the parameter using the following code:
DBSETPROP('testview','view','parameterlist','')
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
MORE INFORMATION
Steps to Reproduce Behavior
- Run the following code in the Command window, or a program file:
CREATE DATA test1
CREATE TABLE tbl1 (fld1 c(10),fld2 c(10))
CREATE SQL VIEW testview AS SELECT * FROM tbl1 WHERE fld1 = ?Param1
DBSETPROP("testview","view","parameterlist","Param1,'C'")
- Modify the View "testview" in the View Designer.
- From the Query menu, choose View Parameters.
- Click the button to the left of the parameter to select the parameter.
- Click the Delete button.
- Close the View Parameters dialog box.
- Save and close the view.
- Modify the view in the View Designer.
- Look at the parameters list in the View Parameters dialog box.
Note that the parameter is listed when it should not be.
Additional query words:
kbVFp600bug kbDesigner kbVFp600
Keywords :
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug