Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Intellisense for an object own methods
Message
De
21/09/2006 12:25:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01156012
Message ID:
01156054
Vues:
26
Hello Phil!

You can trick intellisense this way:

Define a class "myCustom" (based on custom) within a classlib classes.vcx. Add methods methoda with some parameters and methodb. (Well, if you don't have any other classlib at hand ;-)

in methodb write:
#define self this
#if .F.
  Local self as mycustom of c:\the\path\to\classes.vcx
#endif

self.methoda(
Of course c:\the\path\to\classes.vcx should be the correct path to your classlib.

Intellisense will now display the parameters.

You can use the same with any other class of any other classlib. LOCAL varname AS class of classlib will make the editor instantiate one of those in background for intellisense. #if .F. #endif is needed, because at runtime "self" should of course again be this, and that will be done by the #define self this.

Bye, Olaf.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform