Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7 Intellisense Tip
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VFP 7 Intellisense Tip
Miscellaneous
Thread ID:
00523597
Message ID:
00523597
Views:
39
In this month's [June] of FoxTalk, Doug Hennig mentions in his article some pro's and con's of PRG -vs- VCX based classes. The big advantage of a PRG based class is it is very difficult to corrupt with respect to the corruptibility of a table [and memo field] based VCX.

One of the disadvantages of the PRG based class is the PEM sheet is not available. However, you can make intellisense available to at least get your properties setup. For example:
*create a test.prg file
DEFINE CLASS txtBox as TextBox

   LOCAL tb as textbox  && activates IS. Remove this when done
   tb.BackStyle = 0
   tb.BorderStyle = 1
   tb.Comment = 'custom textbox'
   tb.FontBold = .T.

   procedure Init  && beyond this point TB. no longer triggers IS.
Once you get what you need out of IS, just cleanup your code to remove what is no longer needed [e.g., tb. and LOCAL tb as textbox].
Mark McCasland
Midlothian, TX USA
Next
Reply
Map
View

Click here to load this message in the networking platform