Normal Topic CloseCommandArea (Read 634 times)
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
CloseCommandArea
Aug 29th, 2012 at 9:07pm
Print Post Print Post  
I have a puzzle.   I keep the menu tree closed on all forms.  i also have a form that I use as a Main Menu.  I use the same command in all forms in the same place.  In two of my forms, when I go back to the main menu from the update mode ONLY the menu tree will open in the main menu. If I go back to the main menu from search or add it works as it should.  On ALL of the other forms it doesn't it works in every instance.  I am assuming that I have some kind of programming somewhere that is stopping this from working.  Not a big deal, but annoying.

  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: CloseCommandArea
Reply #1 - Aug 30th, 2012 at 2:58pm
Print Post Print Post  
Sounds like you must have "CloseCommandArea(0)" somewhere in those two forms.

Do you use a command button to exit the form?
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: CloseCommandArea
Reply #2 - Aug 30th, 2012 at 3:06pm
Print Post Print Post  
The reason I asked if you use a command button to exit the forms, is because CloseCommandArea(0) wouldn't work if it was in the On Form Exit event, so it can't be there. But, it will work from a command button that is used to exit the form.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
debmckee
Full Member
***
Offline



Posts: 123
Joined: Oct 5th, 2011
Re: CloseCommandArea
Reply #3 - Aug 30th, 2012 at 5:19pm
Print Post Print Post  
I do use a command button to exit the form.  As I said, If i exit from the search mode or the add mode it does not open the menu tree on the form I am going to.  But if I exit from the update mode it opens the menu tree on the form I am going to.  (which is my main menu)  I have put CloseCommand(1) everywhere in the main menu.......
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: CloseCommandArea
Reply #4 - Aug 30th, 2012 at 8:12pm
Print Post Print Post  
Please post ALL of the code related to the button you use to close the form, so I can take a look at it.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged