↧
Answer by Lee Mac for Lisp - How to call a function within another function?
You can pass a function as an argument to another function as demonstrated by the following example:(defun c:add ( / a ) (if (setq a (getint "\nEnter a number to add 2 to it: ")) (+ a 2) ))(defun...
View ArticleAnswer by Dinesh Vilas Pawar for Lisp - How to call a function within another...
As far as I know, you can not send function name as the parameter, but here I give you a technic which can act like similar.I don't have Autocad install on my machine so I am unable to test this code....
View ArticleLisp - How to call a function within another function?
I am trying to call the following function:(defun c:Add () (setq a (getint "Enter a number to add 2 to it")) (setq a (+ a 2)))Inside this LOOPER function:(defun LOOPER (func) ;repeats 'func' until user...
View Article
More Pages to Explore .....