Not quite. When u say menu_class.property = xxxxx, you are NOT accessing the
property of the class. You are accessing the property of an instance of the
class. Only the names are the same for the class and its instance. PB
creates an instance of every class with the same name. However, in this
case, when you closed one instance of the class, or destroyed it, you no
longer have the object (instance of the class). Therefore, depending on your
application, if you have to close an instance and open another and so forth,
you must create another instance (or rather as many instances as needed) and
then when you close one, the other is still available for use.
HTH.
Surya Avantsa
>From: "Daniel Coppersmith" <[EMAIL PROTECTED]>
>Reply-To: "Daniel Coppersmith" <[EMAIL PROTECTED]>
>To: "Sameer Sharma" <[EMAIL PROTECTED]>, "PFCSIG"
><[EMAIL PROTECTED]>
>Subject: Re: PFCSIG Menus
>Date: Tue, 1 Jun 1999 21:32:17 -0500
>
>You need the variable because otherwise you are accessing the properties on
>a class, not an instantiaion of that class.
>
>Consider this example:
>
> integer = 4 + 5
>
>This is obviously wrong because you are assigning a value to a class. Same
>thing with
>
> menu_class.property = xxxxx
>
>D
>
>
>----- Original Message -----
>From: Sameer Sharma <[EMAIL PROTECTED]>
>To: 'Joel Rochlin' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Wednesday, June 02, 1999 9:30 AM
>Subject: RE: PFCSIG Menus
>
>
> > Is defining a local variable of the menu necessary?
> > For e.g. shouldn't this work: m_menu.m_periodicprocessing.Enabled = TRUE
> > I am facing a problem with this syntax only when multiple instances of
>the
>sheet are opened and then one is closed.
> > The above statement then gives a null object reference. However the menu
>is still attached with the sheet.
> > So why does this happen?
> >
> > Any ideas?
> > Using PB 6.5/PFC
> >
> > TIA
> > Sameer Sharma
> >
> > -----Original Message-----
> > From: Joel Rochlin [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, May 27, 1999 11:31 AM
> > To: shalpin
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: PFCSIG Menus
> >
> > M_MASTER lm_menu
> >
> > // ENABLE MENU ITEMS
> > lm_menu = gnv_app.of_getframe ( ).menuid
> > lm_menu.m_periodicprocessing.Enabled = TRUE
> >
> >
> > shalpin wrote:
> >
> > > All
> > > I'm using PB 6.5 with PFC on Windows NT.
> > >
> > > Can anyone give me a refresher on how to enable and disable menu items
> > > on a frame menu.
> > > For example, how would I enable, disable the New or any of my own
>added
> > > items on a menu inherited from m_frame? Depending on Security or what
> > > window is doing what.
> > >
> > > Any help would be appreciated!
> > > Thanks
> > > Steve
> > >
> > > --
> > >
> > > "The greatest good we can do for others is not to share our riches but
> > > to reveal theirs"
> > > Steve R.
> > > Halpin
> > > UNITEDHEALTH Group Inc.
> > > [EMAIL PROTECTED]
> > > MN010-N169
> > > Senior Software Engineer
>Golden
>
> > > Valley, MN 55425
> > >
> > > > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
>COMMANDS, ADDRESS
> > > > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
>pfcsig
> > > > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> >
> > > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
>COMMANDS,
>ADDRESS
> > > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
>pfcsig
> > > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> > > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE
>COMMANDS,
>ADDRESS
> > > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
>pfcsig
> > > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> >
>
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
>ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
>pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]