informix4gl

Position the cursor to end of line


I am trying to validate an input, if invalid; I want to return to that field but to the end of the line.

I don't want the cursor to jump to the beginning of the line. Rather, to the end.

Any idea?

I moved my code from "after field" to "on key (return)" but the field name doesn't have the value at that point. And my C function gives me problems to get it from the buffer.


Solution

  • In Genero, we added fgl_dialog_setcursor() http://4js.com/online_documentation/fjs-fgl-manual-html/index.html#c_fgl_BuiltInFunctions_FGL_DIALOG_SETCURSOR.html to do that, which suggests that what you are after was not easily possible in 4gl