How do I tell an edit table that if the first column is blank and enter is pressed, focus should be passed to the next control? (Like an Arev associated multi valued group)
Q. How do I tell an edit table that if the first column is blank and enter is pressed, focus should be passed to the next control? (Like an Arev associated multi valued group)
A. Code, code, code… You would need to check the DEFPROP (or similar) property of the edittable during a POSCHANGED event and then set focus on another control if there is no data. Unfortunately there is no current way to detect which keys were pressed (i.e. Enter vs. right arrow) so you can't make certain distinctions in behavour.
Try ….i.e. Control-Enter.
It could get tricky if your edit table is doing a lot of work but if it's only holding text use the followind.
1. in gotfocus for the edittable get the selpos and set it to a system variable
2. in poschanged check if the previous selpos system variable is null and if the current cellpos property is null if both are true set the focus property to the next control