Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unusual Error In Browse
Message
From
08/08/2002 07:34:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/08/2002 01:14:32
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00687379
Message ID:
00687437
Views:
12
>Hello All
> I am currently setting up a filter in a table. The syntax for the filter command is as follows:
> set filter to !ps_printed .and. ordno >= thisform.combo1.value .and. ordno <= thisform.combo2.value
> I am filtering within a range of orders that the user would like to print, and I am only printed those where a packing slip has not yet been printed. The filter seems to be logical enough, and I can achieve the correct results when I issue the command in the command window. When I run the form, I get the following error "Object is not contained in a form". Needless to say, I am not able to debug this. I cannot seem to find where the error is, but the debugger does point to the browse command. I put the browse command in just to check to see if the data is being filtered properly, it (browse) will not be in the final application. Any thoughts?
>
>
>Regards,
>Carmen

Meseems the problem is with the ThisForm part: When you are in a BROWSE window, you are not executing method code, therefore, "ThisForm" is not defined. Try to replace with public or private variables, or with _vfp.ActiveForm.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform