Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing methods of an object
Message
De
27/02/1999 09:38:27
 
 
À
27/02/1999 09:06:52
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00191843
Message ID:
00192327
Vues:
18
>>Ben,
>>
>>Chcek out ASelObj() and the Parent property of the object and then the parent property of its container and so on.
>
>Jim,
>
>When we are editing a method code, its object may not be currently selected. We might have clicked at a blank area of the form and ASelObj() does not create any array. Even worse, controls of another form (two forms are simultaneously opened) may be currently selected and the ASelObj() function puts irrelevant information into the array.
>

You can use AMOUSEOBJ(), and check the return - if it returns 0, the mouse isn't over a control or form. Pre-create the array and initialize it to NULL; you can detect whether or not you're positioned over a control on a form, or just a form (you're on the form, but no control is under the mouse. You can check individual members with ISNULL() that way.

>Ben.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform