PDA

View Full Version : Signalling From LISP



relysoft
2005-02-11, 02:40 PM
Surprise! I'm back again today.

OK. I am now executing my LISP functions by using the SendCommand method. However, in my LISP, the user selects an option whose value I want to use when I return back to my VBA code. What is the best way to communicate this value from LISP to VBA? Do I need to use the blackboard or what? Any sample code snippets would be appreciated.

Thanks,
Bob

Ed Jobe
2005-02-11, 04:11 PM
Search this forum for VLAX.cls. It wraps the vlisp interface into a class. You can use it to retrieve a lisp symbol. However, if you are using SendCommand, it probably won't work. because that method is asyncronous and usually runs after all your other vba code is finished executing. You will be better of converting your lisp to vba.

relysoft
2005-02-11, 04:23 PM
Thanks, Ed.

I had just read that SendCommand was asynchronous - not what I wanted to hear.

I guess I will get deeper into VBA than I had planned to at this point. Of course, that makes for a shorter, but steeper learning curve.

BTW, I downloaded the first ATP lesson on VBA. I found it quite good. I'm looking forward to next month's installment.

Bob