﻿# EnterGoTo

_Updated October 2013_

**EnterGoto=# **

This specifies the column number to jump to when the Enter key is hit while editing a cell in this column. If #>0, it jumps to _defined_ column number in the next row. If #<0, it jumps to _defined_ column number in the current row. _Defined_ column numbers are based on the order in which they are defined in the _coldef_ string; this could be unrelated to the _display_ column # due to both hidden columns and reordering - see XTF\_REORD. If EnterGoto is not specified, the default is for Enter to act like Tab and advance to the next editable cell to the right, wrapping to the next row if necessary, unless the XTF2\_ENTERNAVDOWN flag is specified. 

Beginning in A-Shell 6.1.1318, EnterGoto=# may now be set to 0 (EnterGoto=0) to cause the tree to exit on ENTER, with exitcode = -48. If you don't like exitcode -48, you can use the syntax EnterGoto=##### where ##### is >= 10000, or <= -10000, in which case it will return with exitcode set to the specified value offset by 10000. For example, EnterGoto=10099 will return exitcode 99, while EnterGoto=-12500 will return exitcode -2500.

**History**

2012 October, A-Shell 6.1.1318:  Accept value of zero, as described above.