Hi Alls,
Here my code simple,this code if you load it, I first set "last_num" variable to set to "nil",then opt variable would ask,with default 36,so I put "55".
if user reload again,the "opt" variable should display last_num with 55,but this fact it's can not display last opt variable.
Does anyone know how to revised that code,thaks for your help.
(defun c:test (/ opt)
(setq last_num '())
(if
lnum
(setq last_num 36)
) ; if
(setq opt
(getreal
(strcat "\nEnter number of segment < "
(itoa last_num)
" >: ")))
(if
(= opt nil)
(setq opt 36)
(progn
(setq opt (fix opt))
(setq last_num opt)
) ; progn
) ; repeat
(princ)
)