>>Hi,
>>
>>Why would a BROWSE command within a form provoke an error "Object is not contained in a FORM"?
>>
>>I am trying to check the contents of a table at some point. I tried both BROWSE NORMAL and just BROWSE. If I eliminate the BROWSE command, the form runs without errors. The same error appears when I do a SET STEP ON, and then BROWSE the table in the Command Window. I do, however, manage to see the contents of the file.
>
>There is a KB article about this at
http://support.microsoft.com/kb/163185 .
>
>It looks like this can occur with a "cursor created with SQL SELECT and a WHERE condition", not just with a FILTER set.
The cursor would have SET FILTER set implicitly in such case
http://www.berezniker.com/content/pages/visual-foxpro/queries-and-filtered-cursors. NOFILTER/READWRITE SELECT clause will fix the problem.
--sb--