Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Dan, John
Thanks a lot.
Somehow I was missing the important point that the filter will be applied outside the init event.
Thanks
Mo
>Hi Mo ---
>
>All variables are Local by default; once your program moves beyond Init, the filter can no longer be evaluated. I like Dan's idea of a parameterized view based on a Form property, but be careful to set NoDataOnLoad to .T. and REQUERY() the view in the Form Init.
>
>
>>
>>I am passing parameter to a form, in teh init I have the following code that give error VARIABLE NOT FOUND.
>>*****************
>>PARAMETER numID
>>
>>SELECT mains
>>SET filter to mains.id = numid
>>
>>*****
>>
>>This one will work OK
>>---------------------
>>PARAMETER numID
>>
>>public x
>>x=numID
>>
>>SELECT mains
>>SET filter to mains.id = x
>>************************
>>
>>If I change teh PUBLIC to PRIVATE I will receive the same error.
>>Before set filter I can do WAIT WIND STR(numID) without a problem.
>>
>>what am I missing here???
>>
>>Thanks
>>Mo
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement