Exiting Edit Table on blank line (OpenInsight Specific)
At 20 JAN 1998 02:42:09PM Ron Hollar wrote:
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)
At 20 JAN 1998 03:35PM Don Bakke wrote:
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.
At 20 JAN 1998 03:59PM Steve Carlson wrote:
Try ….i.e. Control-Enter.
At 21 JAN 1998 05:24PM Joseph Borojevic wrote:
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