Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intellisense and #DEFINE

Coding and Syntax

Intellisense and #DEFINE

by  Mike Lewis  Posted    (Edited  )
If you use #DEFINE a lot, here is a little tip that could you save you some typing. (Note that this applies to VFP 8.0 and later only.)

When you want to type one of your constants in the code editor, type zdef instead. Intellisense will kick in, displaying a list of the constants in a pop-up window. You can then simply pick the one you want.

For this to work, your constants must be defined either in the same window or in an active header file (including files which are referenced from _INCLUDE or from the Include File option on the Form menu).

A similar Intellisense feature is zloc. This displays a list of all the defined local variables.

Mike Lewis
Edinburgh, Scotland
www.ml-consult.co.uk
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top