Has anyone come across this - I have some code where just occasionally the
alias() gets changed:

** myform.someButton.Click
SELECT curMembers
* snip some set form properties code
TRY

thisform.Pframebase1.Page2.NewObject('Gridouter1','Gridouter','mmclasscode.prg')

CATCH TO oException

** mmclasscode gridouter.init
PROCEDURE Init
   PARAMETERS pcTablename, pcClass, pcClassLib
   * parms not used in this example
   LOCAL cRowClass as String, cErr as string

   WITH THIS
   IF TYPE('pcTablename') = 'C' AND  NOT EMPTY(pcTablename)
      .Table = pcTablename
   ELSE
      .Table = ALIAS()
   ENDIF
*** nine times out of ten at this point .Table = 'curMembers'
*** - the tenth time it is a different (existing) cursor name

Andrew Davies  MBCS CITP
  - AndyD        8-)#



_______________________________________________
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.

Reply via email to