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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form not showing as object in debugger

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
I have tried the following experiment to try and understand what should happen in my app looking in the debugger.

Form1 with cmd button opening Form2

Both forms show as objects in debugger.

In my app the sequence is

frmMain called from Main.prg as background frame for app
frmStart called after frmMain from Main.prg

then a handcoded form called frmmyform after a cmdbutton on frmStart setting up the tables for Frmmyform.

One option on the handcoded frmmyform form is a cmdButton to call frmBig1.

In the debugger I see
frmMain
frmStart
frmmyform

but frmbig1 is not there.

When I run frmbig1 from the run cmd ( although I get lots of missing references) I see it in the debugger.

I want to perform an operation on an image control on frmbig1 from a toolbar floating over frmbig1.

A button on the toolbar successfully opens another form OK.

the operation on frmbig1 does not work ( as the form object of frmbig1 is not available in the debugger)

I opening it with

DO FORM frmbig1 NAME 'frmbig1'

I have substituted

DO FORM form1 NAME 'form1'

and followed the steps mentioned at the start of this thread and I now don't see form1 or form2 in the debugger.

Is there a limit to the number/depth of forms that can show in the debugger?

If they don't show as objects I can't operate on them and the toolbar will not allow me to do what I want.

Anyone any idea what I can do to get the object into the debugger ( and thus be able to perform actions on it)?

Sorry about the long story - I have tried to solve this problem in the past and had to redesign another app to get around it.

Thanks

Bryan









 
Hi Bryan,

To console you a bit I've seen some Debugger problems and even posted a thread on another forum about it. The thread then turned into a complete joke starting with "Now we're in trouble. If there's a bug in Debugger how are we suppouse to debug it with Debugger that has bug in it?" :)

You may try access forms with _screen.ActiveForm instead of thisform
 
It's better to store references to the forms you run or use _SCREEN.Forms than to rely on the names assigned automatically.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top