Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Browse Window
Message
De
19/03/1997 08:30:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00024666
Message ID:
00024796
Vues:
34
>>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.

Thanks Mark... your answe is great.. but it looks like I need to
try the OOP way first and use a GRID. What do you think?
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform