> Le 16 mars 2018 à 03:43, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Hi all.
> 4D seem to be really fired up about the new Collection object available in 
> upcoming versions.
> I’ve read the examples given in the blurb, but I have yet to read anything 
> that would give me an idea as to why I would want to use a Collection instead 
> of an Object.
> It seems as though Collections are objects that don’t need a name parameter 
> to identify the content; but if I have to name a Collection, what’s the 
> difference between that and an Object item?

I think i you use arrays you already use collections… I had from older versions 
object constructed with OB set array. To read the object after I used:
  case of
    :(is object)
    :(is array object)
  end case
Since v16r5 the second test din't work no more and I had to replace: "is 
collection". So in my understanding an object array was just a collection of 
same things. 

From here:
<http://doc.4d.com/4Dv16R5/4D/16-R5/Data-Types.300-3482000.en.html>
"Collection variables store JSON arrays."


-- 
Arnaud 



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to