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

How to allow a Browse in a VFP EXE

Status
Not open for further replies.

MrDataGuy

Programmer
Oct 18, 2010
231
US
Sometime ago I asked the question on how to have a browse in a VFP exe. (For those who do not know the browse has issues when attempted as part of an EXE, e.g. the browse does not show up at all. ) The standard answer to this is to use a GRID control (And that it what I did for the recent issue.) However as I was working on an older application I 'rediscovered' an old trick that I want to share.

All one has to do is issue this command:

Browse Normal in MacDesktop.

The magic is the extra phrase "IN MACDESKTOP"

I assume long ago the browse did not always work on the Macintosh and these extra words fixed it, now they help with VFP and EXEs.

Lion Crest Software Services
Anthony L. Testi
President
 
I use browse in VFP9 without that clause - it works very well!

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Griff,
I started a thread some time ago with the title:
"How to show a missing browse window"

A couple of high lights from that posting:

-"the browse window is not show(n) and the application 'freezes' as it waits for the user to close the none-visible browse."

-"WindowTYpe is MODAL and SHOWWINDOW = 1 (In Top level Form) e.g. this is MDI application"

So it might be that the fact that this is a MDI application that is the root 'problem' and the IN MACDESKTOP is the solution.

It is my hope that others that have the issue can benifit from this solution.

Lion Crest Software Services
Anthony L. Testi
President
 
Interesting, I knocked up a little 'browser' app to help me manage data on my web sites, it lets the user select a table and
(after some other options) just browse it.

It just issues a browse command and works

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Anthony already said what's the problem. If an exe runs without the screen you can't see a browse. You can also solve that via in window, but you'll get the same problem again with memo popup windows.

Besides a tool to look into a table like Griff does, I don't use and don't recommend using browse in applications, we have the grid control as the gui equivalent.

Bye, Olaf.
 
Controlling browse has always been something of a black art, all the way back to Foxpro 1.0.

There's a plain browse, which behaves differently with either WINDOWW or IN WINDOW clauses (which are each different), and still differently again if you combine the two (WINDOW IN WINDOW).

Uncountable words have been spilled writing about it, and all can be summarized with "grids are easier". <g>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top