Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BROWSE command problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
BROWSE command problem
Miscellaneous
Thread ID:
00592848
Message ID:
00592848
Views:
60
I'm trying to perform what should be a simple browse of a filtered database. My syntax is

IF !EMPTY(Thisform.propertyname)
SET FILTER TO = Thisform.propertyname
GO TOP
ELSE
SET FILTER TO
GO TOP
ENDIF

IF !mupdate
BROWSE NOAPPEND NOEDIT NODELETE LAST
ELSE
BROWSE LAST
ENDIF

I get the message "Object is not contained in a FORM" before the browse window opens and my filter condition is ignored.

When I suspend, the debugger shows that the error is occurring at the BROWSE command line.

I'm using tables and not databases. If I comment out the SET FILTER commands and just issue the BROWSE command by itself, the browse window opens without the error message.

Any ideas?

TIA

Richard W. Bates
Next
Reply
Map
View

Click here to load this message in the networking platform