Author Topic: Breaking Changes ..  (Read 3412 times)

Kerry

  • Mesozoic Relic
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
  • class keyThumper<T>
Breaking Changes ..
« on: January 23, 2009, 09:00:26 PM »
Does anyone have a listing of Breaking Changes between

Stable Version: 4.1.2.2 (or 4.1.1.1)
and
Under Development: 5.0.1.5 ?? or 5.0.1.6 (beta 6 in development)

... and the way to resolve the changes between these releases ?

Regards
Kerry



Perfection is not optional.
My other home is TheSwamp

BazzaCAD

  • OpenDCL Webmaster
  • Administrator
  • Hero Member
  • *****
  • Posts: 854
  • Cylons will kill you
    • OpenDCL
Re: Breaking Changes ..
« Reply #1 on: January 23, 2009, 09:18:38 PM »
That's funny, I just started putting together a "OpenDCL Migration Guide" to address those issues.
I think the major one you'll run into is the check boxes & option buttons no longer returning a Boolean.
I used to always use:
Code: [Select]
(if (dcl_Control_GetValue MyProj_Form1_CheckBox1)
  (DoStuff)
)

Now you need to update it to:
Code: [Select]
(if (= 1 (dcl_Control_GetValue MyProj_Form1_CheckBox1))
  (DoStuff)
)
OR
Code: [Select]
(if (> 0 (dcl_Control_GetValue MyProj_Form1_CheckBox1))
  (DoStuff)
)

I think there are a few other small ones, I'll let you know when I remember them. :)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Kerry

  • Mesozoic Relic
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 433
  • class keyThumper<T>
Re: Breaking Changes ..
« Reply #2 on: January 24, 2009, 04:55:28 AM »
That's funny, I just started putting together a "OpenDCL Migration Guide" to address those issues.
I think the major one you'll run into is the check boxes & option buttons no longer returning a Boolean.
< ... >
I think there are a few other small ones, I'll let you know when I remember them. :)


That's one I know intimately :)

I have a heap of old code to update soon , and would like to have some sort of hit list .. and I imagine it will be handy for others as well, cause there seems to be a lot of users still on 4.1.xx from some of the comments I've read.

Regards
kerry



Perfection is not optional.
My other home is TheSwamp

BazzaCAD

  • OpenDCL Webmaster
  • Administrator
  • Hero Member
  • *****
  • Posts: 854
  • Cylons will kill you
    • OpenDCL
Re: Breaking Changes ..
« Reply #3 on: January 26, 2009, 11:50:37 AM »
Hi Owen,
Are you sure the Deprecated functions are still working?
https://sourceforge.net/forum/message.php?msg_id=5304404
Some of my old code called (dcl_Grid_SelCurCell) then I updated it to (dcl_Grid_SetCurCell) and all was good.
But when I look at the list of Deprecated functions it says (dcl_Grid_SetCurCell), I'm guessing that's just a type-o.
The type-o isn't really a big deal, but the Deprecated functions not working kind of is....
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3086
    • Outside The Box
Re: Breaking Changes ..
« Reply #4 on: January 26, 2009, 08:51:26 PM »
The type-o isn't really a big deal, but the Deprecated functions not working kind of is....

It was the same typo both in the reference and int he code. I've fixed it for Beta 7.  BTW, I noticed while fixing this that SelCurRow no longer exists (you have to use SetCurCell instead, passing -1 for the column).