Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listing methods of an object
Message
From
27/02/1999 09:38:27
 
 
To
27/02/1999 09:06:52
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00191843
Message ID:
00192327
Views:
17
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform