PRB: Error Message with BROWSE and SET FILTER Commands in Form (156733)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q156733 SYMPTOMS
When using a SET FILTER or BROWSE FOR commands to filter and display
records in a form, the following error may appear:
"Object is not contained in a form."
The Debug window normally points to the BROWSE command as the line causing
the error condition.
WORKAROUND
Use the following syntax to browse the desired records in the example
created in the Steps to Reproduce Behavior section of this article:
x='"' + ALLTRIM(ThisForm.Text2.Value) + '"'
SET FILTER TO &x $ Test.cfield1
BROWSE
x='"' + ALLTRIM(ThisForm.Text2.Value) + '"'
BROWSE FOR &x $ Test.cfield1
When you define the variable x in this example, a pair of single quotation
mark characters (') enclose a double quotation mark character (").
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | KB156733 |
---|
|