SQL Connection to External SQL DB

2019-09-15 Thread Tarawerkz via 4D_Tech
Hi All, Need some help on a SQL connection issue…. A script that has been to access an SQL database (been deployed for years) has suddenly stopped working and threw up the following error : Error - [DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error In the cause

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
That was a very inspiring post. > On 15 Sep 2019, at 21:44, Aparajita Fishman via 4D_Tech > <4d_tech@lists.4d.com> wrote: > >> ORDA looks really interesting too but I haven't played with it yet, but I'm >> looking forward to experimenting with it soon. > > It’s more than interesting, it’s

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Aparajita Fishman via 4D_Tech
> ORDA looks really interesting too but I haven't played with it yet, but I'm > looking forward to experimenting with it soon. It’s more than interesting, it’s bringing 4D into the 21st century. It’s the way DB access has been on other platforms for a long time, and it's just way, way superior

SPELL SET CURRENT DICTIONARY and SPELL GET DICTIONARY LIST works differently on Windows and Mac

2019-09-15 Thread wangel--- via 4D_Tech
4D v 16.6 I have the following dictionaries installed in the Hunspell folder (.dic and .aff) on both Mac and Windows: da_DK, en_GB, en_US, es_ES, fr-modern, nb_NO, nn_NO og pt_BR Out of those I have personally installed da_DK, nb_NO and nn_NO. The rest is installed by 4D as standard

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
> On 15 Sep 2019, at 14:32, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Don't try to fit a square peg into a round hole just yet Fair enough, Jeff. I won’t, and your advice is of course wise re. “the real thing is coming”. But it’s still interesting to explore the potential

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Jeffrey Kain via 4D_Tech
I think you should stop thinking about dot notation as object orientation. Concepts like classes and inheritance aren't supported yet, and saying $animal:=$dog isn't inheritance -- it's just assigning one object's reference to another and kind of backwards at that. Don't try to fit a square

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Hi Narinder Thanks for posting your commentary. Very interesting. Regards Peter > On 15 Sep 2019, at 13:58, Narinder Chandi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I think our coding style will need to undergo an evolution rather than > revolution

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Narinder Chandi via 4D_Tech
I think our coding style will need to undergo an evolution rather than revolution. We all probably have legacy codebases to maintain where the existing code will mostly stay as-is, but newer code can be written using the new features. Over time developers will no doubt "modernise" existing code

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Thanks Narinder. Doesn’t this imply we need to change our entire style and approach to coding ? Language data structures, forms, the lot ? Have you found you needed to do this ? (At least in terms of new code and optimal approaches). Having attended the last couple of summits and various

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Narinder Chandi via 4D_Tech
Peter, Yes, for legacy structures that are converted to v17 you have to explicitly enable Unicode support and also enable the "Use object notation..." setting under Compatibility. This is assuming that your structure has a clean bill of health in the MSC in regards to not using the period ( .

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Hi Narinder So it does. I created a brand new structure and it now works. I did that example in a legacy upgraded structure so maybe there’s some compatibility setting that I needed to change to fully support the new object syntax. Many thanks for taking the time to check it and respond !

Re: Object property inheritance - why does this this not work ?

2019-09-15 Thread Narinder Chandi via 4D_Tech
Peter, I just tested your code exactly as-is and all the variables have the expected values. I used 17.2 on Mac. What version/platform did you test on? I've sent you a screenshot directly. Regards, Narinder Chandi, ToolBox Systems Ltd. I am available for new consulting opportunities…

Object property inheritance - why does this this not work ?

2019-09-15 Thread Peter Jakobsson via 4D_Tech
Hi Using the v17 dot notation I was unable to get one object to inherit another’s properties using the assignment operator. Also when I inspect $dog in the debugger after assigning the first property, it appears empty. Code is: C_OBJECT($animal;$dog;$cat) $dog:=New object $cat:=New object