Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set intellisense of an object in a DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00827831
Message ID:
00827932
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform