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

BROWSE command in VFP vs FPW26 1

Status
Not open for further replies.

dataccount

Programmer
Sep 19, 2001
39
US
I am having trouble with the BROWSE command in applications written in FPW26 and converted to VFP6.

Issuing the BROWSE command in a FPW26 program activates a FoxPro system menu pad called "Browse" containing bars for "Change", "Grid", "Font", etc. A user can easily toggle between a "Browse" or "Change" window.

The same program converted to VFP6 brings up a "Table" menu pad containing some of the same bars, but not the ones I want. The "View" menu pad containing the choices "Edit" and "Browse") does not appear like it does from the VFP6 command window.

Does anyone have a suggestion on how to retain this feature in VFP6? Thanks for your help.

Jim B.
 
Pain in the butt isn't it?

In VFP you'll want to phase out the BROWSE command, because it's so hard to control effectively.

In the mean time, you can get an object reference to the browse window, then adjust the grid that's on it:

Code:
USE myTable
BROWSE NORMAL NAME oBr
oBr.obr.deletemark = .f.
obr.partition = 300
obr.view=1 && to Change
obr.view=0 && back to Browse

There are many more (look up the Grid control), and you can provide your own menu items to do exactly what you want.
 
wgcs

oBr.obr.deletemark = .f.

Excellent example, but a small typo? Remove one of the "oBr.".
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Oh, darn!

Thanks for your quick reply. It's what I wanted to know, but not what I wanted to hear.

Jim B.
 
Thanks Mike,

Of course! (another cut-and-paste-generated bug!)
 
wgcs

Cut-cut and paste-paste ;-) Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top