>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.
#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.