1

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.

A-Tech
  • 806
  • 6
  • 22
Moses Davidowitz
  • 982
  • 11
  • 28
  • The get_fldbuf() function worked to get the data from the buffer, but the cursor is jumping to the beginning of the line when using "display m_array.string to s_array.string" – Moses Davidowitz Aug 23 '16 at 15:55

1 Answers1

2

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

fourjs.reuben
  • 286
  • 3
  • 3
  • Hey Reuben! I'm using genero, Do you know if there's any way to position a textedit vertical scrollbar at the end? I tried to use FGL_DIALOG_SETCURSOR, but it didn't really work. Any help would be appreciated – HDD Nov 09 '18 at 11:49
  • A quick test revealed that FGL_DIALOG_SETCURSOR also works with TEXTEDIT. I did observe that this call had to be in BEFORE FIELD, it didn't work if in BEFORE INPUT. If you get different results, I suggest you create a small MVCE for your support contact. – fourjs.reuben Nov 13 '18 at 01:56
  • Yeah, it turns out that the problem was that I was rendering HTML tags in the TextEdit, after some changes it worked well. Thanks for the reply – HDD Nov 13 '18 at 16:24