Andy, Obviously a PICNIC problem. (P)roblem (I)n (C)hair (N)ot (I)n (C)omputer
Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Davies Sent: 15 June 2007 13:04 To: [email protected] Subject: Re: wrong alias() - Solved! for anyone interested: the bug was (of course) in the bit of code I snipped from my post, I said: SELECT curMembers * snip myform property setting code TRY thisform.Pframebase1.Page2.NewObject('Gridouter1','Gridouter','mmclasscode.p rg') CATCH TO oException the missing bit was: SELECT curMembers thisform.Pframebase1.Page2.enabled = .T. thisform.Pframebase1.ActivePage = 2 TRY ... now if you happen to already be on Page2 this calls page2.deactivate which I didn't realise... I have code to preserve alias() across page2 activations: * activate thisform.lastselectedalias = ALIAS() thisform.pframebase1.page2.Refresh * deactivate LOCAL cAlias as String cAlias = Thisform.lastselectedalias IF NOT EMPTY(cAlias) SELECT (cAlias) ENDIF which seemed OK to me - but *if* you happen to be already on page2 they are called in reverse order so *if* when you activated page2 you happen to have come from a situation with another cursor selected .. you get my drift! Andrew Davies MBCS CITP - AndyD 8-)# [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

