Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listing methods of an object
Message
From
28/02/1999 03:50:07
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00191843
Message ID:
00192419
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.

Ed,

Thank you for your suggestion. Do you mean that before running the program, the programmer puts his mouse over the corresponding object (or form). This is a solution. However, I am afraid this may not be better than the way we are currently doing (selecting from a list if name duplication found). It is because very often the form is covered by code windows.

Ben
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform