We all know that we cannot change focus from a Valid event, but is that entirely true? Well not really, in fact since DOS VFP we could control the cursor by returning a numerical value in the valid event. Just place the following in the button Valid event:
if not ValueReturned
return 1
else
return 0
endif
Using this technique you can precisely move the cursor based on relative tab order, for instance to go to a specific control you can
if some condition
return newcontrol.tabindex - this.tabindex
else
return 0
endif
Glenn
>No, programatically, I Call a form from a button , if not value is returned I need to jump to the next control, how can do this? The TabIndex in managed dinamycally.. Sorry for my bad english I speak spanish