Hi Tim,
I really appreciated your helpful suggestion. It work fine initially. Just recently I've added a few module to my program and complied the program into vlx. No when I run the program I get:
"no function definition: INITDIA"
I compile the code with the code with Standard mode
One module for each file.
I compiled the following into vlx as a single module and it run fine.
Code:
(defun c:LMTEXT ( / ocmd)
(setq ocmd (getvar "cmdecho"))
(setvar "cmdecho" 1) ;so the standard prompts show up
(initdia) ;Tells the interpeter you want to use the dialog box in the next command
(command "mtext") ;notice no dash
(while (not (zerop (getvar "cmdactive")))
(command pause)
)
(setvar "cmdecho" ocmd) ;set cmdecho back as it was before
(princ)
)
I've spend half a day checking through my other code and still don't have any idea on what cause this problem. Any suggestion will be appreciated.