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) ENDFORhere is what my focuscontrol method looks like:
LPARAMETERS pagename MESSAGEBOX('passed parm was '+STR(pagename),0,'')thanks