Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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 NULL

END

SELECT ASCII_TABLE

ascii_loop:

READNEXT @ID USING CURSOR_NO ELSE eof=TRUE

UNTIL eof DO
READ @RECORD FROM ASCII_TABLE, @ID ELSE
	m=MESSAGE_BOX(@WINDOW,"Unable to read Ascii Table" ,MSG_BTN_OK$)
	RETURN 1
END
	GOSUB process_rec
	GOSUB build_mst
REPEAT

RETURN 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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/96f9043fbd35b05a85256a85005abff4.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1