Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unusual Error In Browse
Message
De
08/08/2002 09:48:55
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
À
08/08/2002 07:34:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00687379
Message ID:
00687482
Vues:
16
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform