Function to call on event

Started by Vaidas · 2009-12-22 08:14 UTC · 3 replies · SMF topic #1100

Hello,

Is it strongly required to define functions on events as commands? I mean to define function as (defun c:xxx () (princ))
Question is for my interest at the moment, not for a task.


Yes, event handlers MUST be commands,  ie C:blablaBla
Hi, Vaidas, yes otherwise it won't work. I had a quick test with your sample. I have cutted the prefix c: from the events in lsp and odcl. No event worked anymore. But there are exceptions. Please have a look {2}.

Fred
Thanks Fred, I did the same and asked when not worked. Not a problem, just testing.
As newcomer, I will let you know about me from time to time :)