spin button error

Started by john126, January 07, 2009, 02:59:01 PM

Previous topic - Next topic

john126

autocad 2004 odcl 5.0.1.4
spin button on modeless form
on_change event returns error: "Too many arguments" when button is clicked

(defun c:XSW_XSW_spxsw_OnChanged (Value /)
  (dcl_MessageBox "To Do: code must be added to event handler\r\nc:XSW_XSW_spxsw_OnChanged" "To do")
)

any suggestions?

thanks

BazzaCAD

Ya I had the same prob.
https://sourceforge.net/tracker2/?func=detail&aid=2483098&group_id=187950&atid=923363
Try adding a 2nd. argument to your callback function.

(defun c:XSW_XSW_spxsw_OnChanged (Value Delta /)
)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

john126

Thanks for the help.

Is it supposed to have 2 arguments or is it just a mistake in the code that will be fixed later to have 1 argument?

I just wanted to know so I can make a note to update my clients program later.