Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot see a property of a pageFrame command button?

Status
Not open for further replies.

dbMark

Programmer
Apr 10, 2003
1,515
US
I have a form I'm writing with a tabbed pageFrame.

From the form's init procedure I make a call to a procedure in the main .prg in the project and it tries to determine the enabled status of the command buttons inside a page of the pageFrame. Unfortunately, the program keeps saying "Object FRMMAINMENU does not exist." Actually I've tested it and the type is "U" (unknown type) for:

frmMainMenu.pageFrameMain.pageCommon.btn1.Enabled

I've tried every angle and alternative but can't seem to grasp what I did wrong. The control is there.

I doubt that this is a problem, but I do have identically named command buttons on different pages of the frame.
 
As long as you're reference the correct page of the pageframe, it won't matter that the command buttons are named the same.
Did you change the form's 'Name' property to "frmMainMenu" or are you just calling it as DO FORM frmMainMenu?
Have you paused execution in the main.prg procedure to and drilled down using intellitext to verify you are referencing everything properly?


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
I think I just figured it out. I shouldnt have made the call from the form's Init method. Too early in the form's creation process, I think. I moved the call from the Init to the procedure that starts the form and placed it after the "DO FORM" command. It works now. On to the next error...

It always happens, I figure it out just as I've explained it in great detail!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top