>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only