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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want sub-classes to see a note on a method?

Status
Not open for further replies.

wgcs

Programmer
Mar 31, 2002
2,056
EC
Ever want a note to show to someone who subclasses your class when they start to override a method?

Sure, you can put a note that shows in the properties window description box, but here's another way:

Just define the parameters to the method like this:
Code:
LPARAMETERS tvParam1, tvParam1 ;
&& Use tvParam1 for something ;
&& but use tvParam2 for something else

It seems that some versions of VFP remove the semicolon and combine it all onto one line, but otherwise, it works great!

( just beware of (don't do) this:
Code:
LPARAMETERS plVerifyAgain, ; && param 1
            pvParm2 && Param 2
because the first line doesn't end with ";" (even though it contains it) VFP doesn't properly continue to import the next line for the subclass, and you only see the first line)

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top