Please. You mean like an array in almost any other language:

python:
x = ["fred", 2, {"test":4}]

javascript:
var x = ["fred", 2, {"test":4}];


> On Mar 21, 2018, at 1:00 PM, Tom Swenson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> OK, like PHP arrays 
> 
> On 3/16/18, 8:23 AM, "4D_Tech on behalf of Jeff Grann via 4D_Tech" 
> <4d_tech-boun...@lists.4d.com <mailto:4d_tech-boun...@lists.4d.com> on behalf 
> of 4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> wrote:
> 
>    Haven’t worked with them yet, but my understanding is that a collection is 
> an ordered list of values of possibly varying types.  In 4D arrays, all of 
> the values must be the same type.  In a 4D collection, you can use mixed 
> types as the elements.
> 
>    Example:
> 
>    $MyCollection[0]:=“Hello”
>    $MyCollection[1]:=5
>    $MyCollection[2]:=$AnObject
>    $MyCollection[3]:=$AnArray
>    $MyCollection[4]:=True
> 
>    ----------
>    Jeff Grann
>    SuccessWare, Inc.
> **********************************************************************
> 

**********************************************************************
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