The information in this article applies to:
SYMPTOMSIn Visual FoxPro 5.0, the SetFocus method does not function in the VALID, WHEN, RANGEHIGH, and RANGELOW methods of TextBox, EditBox, and Spinner controls. Attempting to use the method will result in the error: NOTE: The error occurs if some other control's method is called that calls a SetFocus. That is, this error occurs if any of the events (When, Valid, RangeHigh, RangeLow) somewhere lower in the call stack calls the SetFocus. Example: The VALID calls a CLICK that calls a CLICK that calls a SETFOCUS; the error still occurs. WORKAROUNDCall the SETFOCUS method in the LOSTFOCUS and GOTFOCUS methods rather than in the VALID and WHEN methods. STATUSThis behavior is by design. MORE INFORMATIONThe controls in Visual FoxPro that will cause this error are TextBox, EditBox, and Spinner. Steps to Reproduce Behavior
Additional query words:
Keywords : kbVFp kbVFp500 kbVFp600 FxprgClassoop FxtoolFormdes |
Last Reviewed: August 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |