Hi everybody,
I was wondering if there was somebody out there that could explain why this while loop loops infinitely many times?
Here is the loop that is causing the problem:
(SETQ COUNT 100)
(WHILE (> COUNT 0)
(SETQ DCL_ID (LOAD_DIALOG "DIEISET1.dcl"))
(IF (NOT (NEW_DIALOG "DIEISET1" DCL_ID))
(EXIT)
)
(ACTION_TILE "stdscale" "(SETQ STDCHECK $VALUE)")
(ACTION_TILE "metscale" "(SETQ METCHECK $VALUE)")
(ACTION_TILE "settext" "(SETQ DIEITEXT $VALUE)")
(ACTION_TILE "setdim" "(SETQ DIEIDIM $VALUE)")
(ACTION_TILE "setvpscale" "(SETQ VPSCALE $VALUE)")
(ACTION_TILE "drawvp" "(SETQ MAKEVP $VALUE)")
(START_DIALOG)
(IF (OR (AND (/= STDCHECK 0) (/= METCHECK 0)) (OR (= STDCHECK METCHECK
0)))
(PROGN
(1- COUNT)
(PRINC "\nPLEASE CHOOSE EITHER A METRIC OR IMPERIAL SCALE") ) (PROGN (SETQ COUNT 0) (DONE_DIALOG) ) )
)
Thanks in advance for the help!
Scott McKenzie
I was wondering if there was somebody out there that could explain why this while loop loops infinitely many times?
Here is the loop that is causing the problem:
(SETQ COUNT 100)
(WHILE (> COUNT 0)
(SETQ DCL_ID (LOAD_DIALOG "DIEISET1.dcl"))
(IF (NOT (NEW_DIALOG "DIEISET1" DCL_ID))
(EXIT)
)
(ACTION_TILE "stdscale" "(SETQ STDCHECK $VALUE)")
(ACTION_TILE "metscale" "(SETQ METCHECK $VALUE)")
(ACTION_TILE "settext" "(SETQ DIEITEXT $VALUE)")
(ACTION_TILE "setdim" "(SETQ DIEIDIM $VALUE)")
(ACTION_TILE "setvpscale" "(SETQ VPSCALE $VALUE)")
(ACTION_TILE "drawvp" "(SETQ MAKEVP $VALUE)")
(START_DIALOG)
(IF (OR (AND (/= STDCHECK 0) (/= METCHECK 0)) (OR (= STDCHECK METCHECK
0)))
(PROGN
(1- COUNT)
(PRINC "\nPLEASE CHOOSE EITHER A METRIC OR IMPERIAL SCALE") ) (PROGN (SETQ COUNT 0) (DONE_DIALOG) ) )
)
Thanks in advance for the help!
Scott McKenzie