>En el evento click de un commandgroup tengo la siguiente sentencia:
>thisform.text1.setfocus
>Cuando hago click en el mismo me da el siguiente error:
>Cannot call Setfocus from within a When, Valid, RangeHigh, RangeLow event.
>Me podrian explicar porque se produce dicho mensaje ???
>Desde ya muchas Gracias
Creo que significa que hay algún tipo de interferencia (contradicción) con tu intento de cambiar el foco a un objeto específico (con el Click).
Pero no sé cómo solucionarlo. Quizás se pueda usar algún otro método. Se me ocurre una acción postergada con un Timer, ¡pero me parece una solución demasiado complicada para algo que debería ser tan simple!
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)