Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IntelliSense Tip
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00637348
Message ID:
00637375
Views:
26
>After reading a message from Glenn Domeracki concerning IntelliSense, I discovered an interesting feature. Not sure if this is common knowledge, but I certainly didn't know that this works. Since I often work with PRG based classes, the following discovery was a nice and welcome surprise:
>
>DEFINE CLASS MyClass AS Custom
>
>   #IF .f.
>      *-- dummy code to invoke IntelliSense when typing This.
>      *-- doesn't do any harm since it's not compiled
>      LOCAL This AS MyClass OF "c:\temp\test.prg"
>   #ENDIF
>
>   *-- define some prperties
>   cProp1  = ""
>   cProp2  = ""
>   lFlag   = .f.
>   nValue1 = 0
>   nValue2 = 0
>
>   FUNCTION Function1(tcFile, tlFlag)
>   ENDFUNC
>
>   FUNCTION Function2(tcString, tnValue, tlFlag)
>   ENDFUNC
>
>ENDDEFINE
>
>
>By adding the dummy line above, IntelliSense kicks in when typing "This." anywhere in the class. When you add new properties/methods to the class, you need to compile the prg before they appear in the list.

Daniel,

Thanks for posting this. It means, however, that I have to correct a previous post of mine.< bg >
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform