OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Amsterdamned on May 13, 2009, 01:04:36 AM

Title: problems with old projects in odcl 5.105?
Post by: Amsterdamned on May 13, 2009, 01:04:36 AM
Hello there,
I just restarted my programming work after a period of only design work. I downloaded the odcl 5.105 and my 4.0 projects don't work anymore. I need to give a presentation tomorrow, so I feel a bit stupid that I downloaded the new version. It sees to be a problem with the
Code (dcl_ListBox_GetSelectedNths) Select
.

is there a quick fix to that or better said is this a known thing. Can I get back to 4.0?

Thanks in advance,


Bernd
Title: Re: problems with old projects in odcl 5.105?
Post by: Amsterdamned on May 13, 2009, 01:12:22 AM
 

Also when loading the form it already gives an alert:

An opendcl function argument processing exception has occurred!

Error Invalid argument type

Function: odc_Control_SetValue
Argument: 1

This form was working with no problems in the 4.0 environment.

Bernd
Title: Re: problems with old projects in odcl 5.105?
Post by: Kerry on May 13, 2009, 01:16:55 AM

This may help

http://www.opendcl.com/tutorials/OpenDCL_Migration_Guide.pdf (http://www.opendcl.com/tutorials/OpenDCL_Migration_Guide.pdf)
Title: Re: problems with old projects in odcl 5.105?
Post by: Kerry on May 13, 2009, 01:21:13 AM


What is the problem wou have with dcl_ListBox_GetSelectedNths ??
Title: Re: problems with old projects in odcl 5.105?
Post by: Amsterdamned on May 13, 2009, 09:15:27 AM
Kerry,

For the moment (tomorrows meeting I have to present some stuff) I set I back to my working environment.

The
dcl_ListBox_GetSelectedNths

Gave nil as result although I was selecting some item. I just looked at the migration link and will look further into it after tomorrows meeting. If that goes well I will have plenty of programming work to do, and change al my stuff to 5.1.

Thans for your effort,

Bernd
Title: Re: problems with old projects in odcl 5.105?
Post by: BazzaCAD on May 13, 2009, 09:43:17 AM
If you find any other issues that aren't in the migration guide, please let us know.
Title: Re: problems with old projects in odcl 5.105?
Post by: owenwengerd on May 13, 2009, 11:26:44 AM
Quote from: Amsterdamned on May 13, 2009, 01:04:36 AM
It sees to be a problem with the
Code (dcl_ListBox_GetSelectedNths) Select
.

There are no known problems with that function. My guess is that your listbox selection style is not set to one of the multiple selection styles. If that's the case, use (dcl_ListBox_GetCurSel) instead.
Title: Re: problems with old projects in odcl 5.105?
Post by: Amsterdamned on June 16, 2009, 12:14:56 PM
owen,

sorry for the late reply, but it took me a while to get back to that problem. Your idea worked, i use dcl_ListBox_GetCurSel now and it works.
Thanks you all


bernd