Home > Archive > Programming with dBASE > May 2005 > debug problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author debug problem
john noble

2005-05-04, 7:23 am

When I try and debug a certain form, (using 2 different methods build -> debug & right-click -> debug on form object) the actual form disappears when I click the 'run' from the debug menu.

To view the form I have to minimise dbase but even then I still cant use the form as it cannot get focus when I click on it. Its as if dBase wont allow the form to get focus as it is not 'running on top of the dbase' if you know what I mean.

Up until now I have always had to insert msgboxes to see the value of something at a specific point in the app, but this gets VERY tiresome after a while and it is simply not feasable to continue to do this.

Can anyone advise on why this might be happening?

John
Ken Mayer [dBVIPS]

2005-05-04, 9:23 am

john noble wrote:
> When I try and debug a certain form, (using 2 different methods build
> -> debug & right-click -> debug on form object) the actual form
> disappears when I click the 'run' from the debug menu.
>
> To view the form I have to minimise dbase but even then I still cant
> use the form as it cannot get focus when I click on it. Its as if
> dBase wont allow the form to get focus as it is not 'running on top
> of the dbase' if you know what I mean.


Do you have this set with the form's showTaskBarButton property set to
false? If so, try setting it to true. That way you should at least be
able to click on it in the task bar. If that's not the case, I don't
know what to say. I never use the debugger myself.
>
> Up until now I have always had to insert msgboxes to see the value of
> something at a specific point in the app, but this gets VERY tiresome
> after a while and it is simply not feasable to continue to do this.


Try just using ? for output rather than MSGBOX ...

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
john noble

2005-05-04, 9:23 am

Ken Mayer [dBVIPS] Wrote:

> Do you have this set with the form's showTaskBarButton property set to true


Yes

> Try just using ? for output rather than MSGBOX ...


When I click on the command window, the form disappears behind dBase and I cant get at the form again. I have no other option but t use msgboxes as annoying as they are
>

John
Ken Mayer [dBVIPS]

2005-05-04, 11:23 am

john noble wrote:
> Ken Mayer [dBVIPS] Wrote:
>
>
>
>
> Yes
>
>
>
>
> When I click on the command window, the form disappears behind dBase and I cant get at the form again. I have no other option but t use msgboxes as annoying as they are


For testing purposes set the showTastBarButton to false:

set proc to MyTestForm.wfm additive
fTest = new MyTestFormForm()
fTest.showTaskBarButton := true
fTest.open()

That way you can click on the button on the task bar to open it, but
this is only a temporary override of the property and not changing the
value in the form permanently.

Ken


--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
john noble

2005-05-05, 3:23 am

Ken Mayer [dBVIPS] Wrote:

>
> For testing purposes set the showTastBarButton to false:
>
> set proc to MyTestForm.wfm additive
> fTest = new MyTestFormForm()
> fTest.showTaskBarButton := true
> fTest.open()
>
> That way you can click on the button on the task bar to open it, but
> this is only a temporary override of the property and not changing the
> value in the form permanently.
>
> Ken
>

Still cant get the form to appear on top of dBase.
I have started to re-write the form into 2 seperate ones. Hopefully this way it will make it easier for dBase to manage.

Once again, Thanks very much again for your help Ken.
Much appreciated!

John
Ken Mayer [dBVIPS]

2005-05-05, 7:23 am

john noble wrote:
> Ken Mayer [dBVIPS] Wrote:
>
>
>
> Still cant get the form to appear on top of dBase.
> I have started to re-write the form into 2 seperate ones. Hopefully this way it will make it easier for dBase to manage.
>
> Once again, Thanks very much again for your help Ken.
> Much appreciated!


Try setting the form's topmost property ... <g>

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com