Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Browse Window
Message
 
 
To
18/03/1997 11:07:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00024666
Message ID:
00024765
Views:
32
>What is the OOP way to call a BROWSE?
>Other than:BROWSE FIELDS,BROWSE IN WINDOW.

There are a couple of ways to have some OO control over a browse window: First, to control position and other characteristics of the Window in which the browse will be instantiated, here's a snippet:
================
Define Window TemplateWin From 0,0 size 3,10 System Name oTemplateWin
* The window position/size in the DEFINE command are just so the command is syntactically correct. Now for the OO part:
With oTemplateWin
.Width=620
.Height=240
.Ccaption="Blah, blah"
* any other properties you want to set that are properties of a window (which are almost all the properties that a form has too)
EndWith

Browse Window TemplateWin NoWait Normal ... blah, blah
Release Window TemplateWin
* The template window is released but the browse lives on
============
Furthermore, you can use the NAME clause in the Browse command, which gives you an object reference for the Browse window itself. If you do this, you will find that the Browse window (i.e., object) has almost all the properties of a grid, but no methods or events. You can investigate this in detail by using the aMembers functio. Simply pass to aMembers the browse window's object reference that you create with the NAME clause.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform