Found the problem as well. Run this script and click the add button. Now select that first row and click the select button instead. You'll get the error, and the error is dependent on you choosing the first row. Run it again, click Add twice, select the SECOND row and no error occurs.
OPTIONS "C_CALL LABELCHECK"
NUMERIC DIGITS 10
DO
RXFUNCADD('rexxgui')
CATCH FAILURE
CONDITION("M")
RETURN
END
line_nr = 0
service.0 = 0
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
IF EXISTS('GuiObject') == 0 THEN DO
IF EXISTS('GuiSignal') THEN DO
END
END
ELSE DO
IF EXISTS('GuiSignal') == 0 THEN DROP (guiobject)
ELSE SELECT guiobject
WHEN 0 THEN NOP
OTHERWISE
END
END
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_click_add_button:
line_nr = line_nr + 1
new_service = 'Added line_'line_nr
service.0 = service.0 + 1
service.line_nr = new_service
err = guisendmsg('service_list', 'ADDSTRING', ,new_service)
RETURN
wm_click_select_button:
guigetctlvalue('service_list')
i = service_list + 1
temp = service.i
PARSE VAR temp field1_entry field2_entry
CALL delete_service()
guisetctlvalue()
RETURN
delete_service:
temp = service_list + 1
temp_name = service.temp
guiremovectltext('service_list', '')
ERROR = STEMDELETE('SERVICE', , temp, 1)
RETURN
Michael |