Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intellisense for an object own methods
Message
From
21/09/2006 12:25:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01156012
Message ID:
01156054
Views:
25
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform