Re: C_OBJECT Performance problem with arrays

2018-09-30 Thread Jim Crate via 4D_Tech
It’s good to know that there are ways to work around this in v17. I forgot to mention that I’m working in v16 where we don’t have collections or dot notation yet. Jim > On Sep 30, 2018, at 8:22 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hello, > > it is important to u

Re: C_OBJECT Performance problem with arrays

2018-09-30 Thread Keisuke Miyako via 4D_Tech
Hello, it is important to understand that objects and collections are references, and "bridge" commands such as OB GET ARRAY and OB SET ARRAY create deep copies of the entity that is referenced. if, for example, you were to append an item to an object array that belongs to an object, OB GET ARR

C_OBJECT Performance problem with arrays

2018-09-30 Thread Jim Crate via 4D_Tech
I ran into a serious performance problem with 4D Objects and figured I’d mention it so others may be able to avoid the scenario. I am consuming an API returning JSON. Some endpoints return an object with properties, and some return an array of objects. To present a consistent interface in the co

Re: Printing A3 format on windows when scaling is not possible

2018-09-30 Thread Keisuke Miyako via 4D_Tech
the paper size option accepts either a paper name or a width/height value. true. some systems have localised paper names so "A3" may not always work. alternatively you could filter the values returned for PRINT OPTION VALUES. http://doc.4d.com/4Dv17/4D/17/PRINT-OPTION-VALUES.301-3730884.en.html t

Re: How to get the current time in a specified time zone

2018-09-30 Thread Keisuke Miyako via 4D_Tech
this will be a repost of links I already mentioned in my previous post. plugins to handle timezones: https://github.com/miyako/4d-plugin-tz https://github.com/miyako/4d-plugin-time-and-number ** 4D Internet Users Group (4D iNU