If you change the code (guiaddmenu_problem) so that it looks like this
guicreatewindow()
rc = post_create_window()
guisetctlvalue()
guisetctlplacement(,,,,,,'NORMAL')
rc = change_db2_source.rex("I")
again:
DO FOREVER
and comment out the call to change_db2_source in post_create_window, then it almost works. Trouble is, I get an error on the call to change_db2_source err 43.1 Could not find routine "[]" (where [] is a simple square) when I run the script. If, however, I step through the code it works. |