Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set intellisense of an object in a DLL
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00827831
Message ID:
00827932
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
Ramil,

This would do the trick
LOCAL loerr as exception
#DEFINE loErr o.err
? loerr.ErrorNo
Tracy

>Hi all,
>
>How do I make intellisense work in this scenario. Assume that the DLL is already registered.
>
>* MTDLL file: MyDLL.dll
>define class myClasses as session olepublic
>   * add object err as exception  && does not work on a session class
>   err = null
>   proc init
>      this.err = createobject('exception')
>   endproc
>   func Class1()
>      try
>         error(1)
>      catch to this.err
>      finally
>      endtry
>   endfunc
>enddefine
>
>* Implementation:
>o = createobject('MyDLL.myClasses')
>o.Class1()
>? o.err.Errorno  && err does not trigger intellisense!
>
Tracy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform