I'm trying to bind my pages activate event to a method that will determine how to put cursor on first textbox on the page. I was trying to pass the page name to the method being bound so that I don't have to loop though may pageframe again, but I see your point. When my method runs through activate, I should just loop through in the method and determine what page I'm on. Your right, it doesn't make sense to pass parameter to object being bound.
thanks
Nick
>The BINDEVENT() function binds handler object delegate to the source object event. It doesn't call delegate. The delegate will be called when the event, it bound to, occurs. If that event has parameters, thay will be passed to the delegate.
>What're you trying to do?
>
>>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
>> pgname = "thisform.my_pf1.page"+transform(a)
>
> 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,'')
>>
>>