General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>>Hi Hilmar
Thanks for the suggestion. I tried to reference the control's value through using _vfp.Activeform.combo1.value in the filter expression, but I received the error "Member ActiveForm does not evaluate to an Object". I could try to use a public variable perhaps.
Thanks
Carmen
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only