Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IntelliSense on Object Property?
Message
From
03/04/2003 12:51:07
 
 
To
02/04/2003 10:02:45
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00772935
Message ID:
00773667
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Is it possible to use IntelliSense on a property that is an object? While working on a class, I would like to type This.oMyObject. and see the IntelliSense listing of object members. What I do now is create a local variable reference to the property like this:
>
>Local loMyObject as MyClass of MyClassLib
>loMyObject = This.oMyObject  && for IntelliSense
>
>Then when I type loMyObject. , I get the IntelliSense listing. This way works fine, but if there is a better way, it would be nice to remove the extra reference.
>
>Thanks.

Here's a kludge that works, but it may be more trouble than it's worth:
#DEFINE otest ox.myobj
#IF .f.
LOCAL ox AS textbox, otest AS shape
#ENDIF
ox = CREATEOBJECT("textbox")
ox.AddProperty("myobj")
otest = CREATEOBJECT("shape")
It does give you what you want, as there really is no "otest" variable at runtime, it just gets replaced by the value from the #DEFINE.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform