OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on September 04, 2012, 06:18:25 AM

Title: Runtime 7.0.0.4 vs 7.0.0.6
Post by: Emiliano on September 04, 2012, 06:18:25 AM
Hello to all,
I made my application using the runtime 7.0.04.
Today I installed the new runtime 7.0.0.6 and I noticed a different behavior in the following line of code:

(setq xval (dcl_ListBox_GetSelectedItems App_Form_Princ_ListBoxGruppi))

with 7.0.0.4 returns a string: "TEST"
and 7.0.0.6 returns a list: ("TEST")

It is not a problem for me to correct my application, but I want to know what is the correct behavior 7.0.0.4 or 7.0.0.6?
Soon I will have to install, when available, the runtime compatible with Bricscad V13 and I'm afraid that you decide to return to the behavior of 7.0.0.4

Can you help me understand?
thanks
Title: Re: Runtime 7.0.0.4 vs 7.0.0.6
Post by: hmspe on September 04, 2012, 06:45:07 AM
Version 7.0.0.7 seems to work with the beta for Bricscad 13.

For the change of behavior you showed please see the thread "latest version broke my code" started on August 21, 2012.  Owen posted the statement, "It was a bug in earlier versions that GetSelectedItems did not return a list for a single-selection listbox. It should now match the documentation by always returning a list."
Title: Re: Runtime 7.0.0.4 vs 7.0.0.6
Post by: Emiliano on September 04, 2012, 09:51:54 AM
Perfect!
thanks for reporting