Benjamin,
Please provide a code example next time.
If you want to implement your own action handler to insert a row, you should do following:
ON ACTION myinsert
LET x = DIALOG.getCurrentRow("sr")
display "insert row: curr = ", x
CALL DIALOG.insertRow("sr",x)
CALL DIALOG.setCurrentRow("sr",x) -- MUST SET THE NEW CURRENT ROW!
display "after insertrow()"
display " arr_curr() = ", arr_curr()
display " scr_line() = ", scr_line()
display " getCurrentRow() = ", DIALOG.getCurrentRow("sr")
display " arrayToVisualIndex() = ", DIALOG.arrayToVisualIndex("sr",DIALOG.getCurrentRow("sr"))
However, why are you doing this?
Is ON INSERT of DISPLAY ARRAY not good for you?
Please explain the reasons why you want to write your own action handler to insert rows.
Seb