Printing - FoxTalk - dFPUG-Portal
Printing - FoxTalk - dFPUG-Portal
Printing - FoxTalk - dFPUG-Portal
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
constructive criticisms. I treasure them all. The loyalty of <strong>FoxTalk</strong> subscribers is something to<br />
behold. You really care about this publication!<br />
I hope you'll be as kind to my successor, Whil Hentzen . Whil needs little introduction: he's been<br />
a regular columnist in <strong>FoxTalk</strong> since before my time, has served the past few months on our<br />
Editorial Advisory Board, and is probably one of the best-connected and best-liked folks in the<br />
Fox community. He's president of Hentzenwerke Inc. in Milwaukee, Wisconsin, a FoxPro<br />
development firm that each November sponsors the Great Lakes Great Database Workshop for<br />
FoxPro developers. In addition, Whil is a driving force behind the FoxPro user group in his area,<br />
as well as the author of the new book Programming Visual FoxPro 3.0 from Ziff-Davis.<br />
Somehow, he finds the time to run competitively and raise three children with his wife, Linda.<br />
I hope that you'll take a moment to extend Whil a warm welcome (he can be reached on<br />
CompuServe 70651,2270).<br />
I won't be disappearing entirely from these pages; indeed, I may have more time to write articles<br />
than I did as editor! I wish you and yours the best of success in the coming years, and invite you<br />
to keep in touch (I can still be reached on CompuServe 74126,72).<br />
Tip: Set Focus to a Control When a Record is<br />
Added<br />
William O'Connor<br />
To set focus to a particular control when a record is added, add a new property to your form<br />
called cAddfield. Then add this method and give it the name of your choice:<br />
* This method requires the form to have a property<br />
* called cAddField. cAddField MUST contain a fully<br />
* specified object path pointing to the object.<br />
* For example:<br />
* cAddField = 'PageFrame1.Page1.txtEmployee'<br />
* Please note that this will set focus, but won't change<br />
* the page to show the field if it is on the non-current<br />
* page of a pageframe.<br />
IF TYPE("THISFORM.cAddField") = "C" AND ;<br />
NOT EMPTY(THISFORM.cAddField)<br />
cObjName = ALLTRIM(ThisForm.cAddField)<br />
= EVALUATE("THISFORM." + ALLTRIM(cObjName) ;<br />
+ ".SetFocus()")<br />
ENDIF