Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can delegate in bindevent pass parameter to method?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Can delegate in bindevent pass parameter to method?
Divers
Thread ID:
00943649
Message ID:
00943649
Vues:
94
can the delegate pass parameters to calling method when using bindevent? The following seem to be giving me errors in the bindevent line:
			FOR a = 1 TO .my_pf1.PageCount && count how many pages in pageframe
			
				pgname = "thisform.my_pf1.page"+transform(a) &&take page number from pgcnt variable and add it to constant
				BINDEVENT(&pgname,"Activate",thisform,"focuscontrol("+pgname+")"=,0)
				
			ENDFOR
here is what my focuscontrol method looks like:
LPARAMETERS pagename
MESSAGEBOX('passed parm was '+STR(pagename),0,'')
thanks
Nick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform