Debug don't work (OpenInsight Specific)
At 10 JUL 2001 12:31:13PM a becker wrote:
Somebody please explain this to me. I am attempting to use debug in this program that I have just started to code. At the very beginning of this script (it's on the OK button click), I have a simple message_box that simply says "start of program" with an OK button on it. The debug is after the message_box and a bunch of variables.
When I include the UNTIL eof DO statement the following happens - the message_box does not appear and the debug does not work. When I remark out the UNTIL eof DO statement, the message_box appears and the debug activates.
I have the following statements - note eof=0, done=1:
debug
table=DDAASC"
OPEN table TO ASCII_TABLE THEN
OPEN 'DICT', table to @DICT ELSE NULLEND
SELECT ASCII_TABLE
ascii_loop:
READNEXT @ID USING CURSOR_NO ELSE eof=TRUE
UNTIL eof DOREAD @RECORD FROM ASCII_TABLE, @ID ELSEm=MESSAGE_BOX(@WINDOW,"Unable to read Ascii Table" ,MSG_BTN_OK$)RETURN 1ENDGOSUB process_recGOSUB build_mstREPEATRETURN 1
I have checked various programs that we have this same type of logic in, and it works fine with debug. The file I am reading does have a btrieve index, but I removed the btrieve and got the same results.
Any ideas as to what is happening to either the message_box or debug or both???
Thanks for your help
Andy
At 10 JUL 2001 03:10PM a becker wrote:
Found the solution.
The problem was that there was no LOOP at the beginning of the readnext etc.
I had ascii_loop with a colon after it, but no loop without the column. I put LOOP in and it works.
Andy