Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter NOT FOUND in forms.init with set filter
Message
De
09/09/1999 14:25:47
 
 
À
09/09/1999 14:14:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00263033
Message ID:
00263054
Vues:
19
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
Fil
Voir

Click here to load this message in the networking platform