Hi.
I have a input by name with one field as a part of a dialog unbuffered. What I want to achieve is this:
When I enter the Input statement the field (leita) has a certain value. I want to position the cursor at the end of the field, and I want the value of the field NOT to be highlighted (selected). Something like:
dialog attributes(unbuffered)
display array p_d[rec] to listi.* attributes(count=norecs[rec], keep current row)
.
.
.
on action char_leit
if leita is null then
let leita=cstaf
else
let leita = leita, cstaf
end if
next field leita
end display
input by name leita
before input
call fgl_dialog_setselection(0,0)
call fgl_dialog_setcursor(length(leita))
end input
end dialog
Can this be achieved? In the code above, the cursor is never positioned at the end and using length+1 doesn't work either. If the field only has one character the character gets selected.
Best regards,
-Snorri