LISP statements execute out of order

wkiernan

Usenet Archive
Joined
Jan 30, 2004
Messages
19
Reaction score
0
Here's something odd; try this:

(defun out_of_order
(princ "\nHello! You'd expect")
(princ "\nthese lines to be displayed")
(princ "\nbefore the dialog box opens, but...")
(setq fname (getfiled "Pick a file any file" "" "" 0))
)

You get the first two lines, then the getfiled dialog box opens, and only after that does AutoCAD display the last line. What gives?
 
Try this:

(defun out_of_order
(princ "\nHello! You'd expect")
(princ "\nthese lines to be displayed")
(princ "\nbefore the dialog box opens, but...\n") ;<- note slight change (setq fname (getfiled "Pick a file any file" "" "" 0))
)
 

Member Recommended

Back
Top