Started by Hypersonic ·
2010-01-18 22:00 UTC ·
3 replies · SMF topic #1139
Hypersonic
2010-01-18 22:00 UTC
(dcl_Calendar_SetCurSel job_manager_job_manager_cal1_Calendar1 (list (atoi min_year) (atoi min_month) (atoi min_day)))
This returns an error that says "Bad arguement, expected more arguements"
Not sure why, this is an upgrade from object_dcl to open_dcl, but I copied in the "new" version of the setcursel command (shown above) and it still does it.... ugh
Thanks!
Kerry Brown
2010-01-19 15:08 UTC
How about posting a small sample .LSP and .ODCL demonstrating your difficulty.
This will save Owen some time and ALSO make sure that your usage of the Control and methods is correct.
owenwengerd
2010-01-19 17:05 UTC
The problem is that AutoCAD chokes on a 3-integer list whose first element is the integer 2010. This is a long-standing problem in AutoCAD resulting from its attempt to interpret such a list as a DXF group. The only solution is to fool AutoCAD by making the first element a real instead of an integer. Use (float (atoi min_year)) to make it a real, then it should work.
Hypersonic
2010-01-20 13:53 UTC
Yep the float thing fixed it! Wow, I would have never figured that out!
Thanks Owen!