>>>That's not how I remember it... but now that I tried it, it really doesn't recurse. And exactly the reason why I used the recurser (see
https://www.levelextreme.com/Home/ShowHeader?Activator=17&ID=21923) to set the fonts on my form. So my code is fine, my memory isn't :)
>>
>>I remember to have tried this on my first steps with VFP, failed and ignored it from there on. The one reason was the one above, the other was that the last parameter is
class - not very useful for a generic handler, what do I know what classes I'm using later on.
>
>The last parameter can be omitted, and then it applies to any object with the supplied property, and can also be the baseclass, so you can apply it to, say, all the buttons without going through your six button classes one by one.
>
>The lack of recursion is a bigger flaw, IMO.
From VFP help
[cite]
cClass
Specifies the class name (the class on which the object is based, not the Visual FoxPro base class for the object).
[/cite]
Also, for the very problem, omitting the class would set the Header too, what might not be intended.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]