Re: Collections

2018-03-21 Thread John DeSoi via 4D_Tech
Tim, I was not convinced that proves it. Internally, it could just keep track of the largest value and return null for any values in between that are not assigned. But I thought of a test that likely proves you are right: C_COLLECTION($test) $test:=New Collection $test[MAXLONG-5]:=5 You'll be

RE: Collections

2018-03-21 Thread Timothy Penner via 4D_Tech
> $collection := New collection() > $collection[247] := "fred" > > I doubt that it creates 247 (indexes 0-246) empty elements in the collection. > Would love to hear confirmation or denial from some one at 4D that knows the > internals. Actually, it does create 247 empty elements (null to be

Re: Collections

2018-03-21 Thread John DeSoi via 4D_Tech
In the 4D case and in the cases below (plus PHP), I suspect a collection is really just an "object" (hash table) with numeric keys instead of string keys. For example, if I write $collection := New collection() $collection[247] := "fred" I doubt that it creates 247 (indexes 0-246) empty

Re: Collections

2018-03-21 Thread Robert McKeever via 4D_Tech
Anybody here remember Pick Basic? A record had many fields, each field could have many values, and any value could have many sub values. Like working with a cube where you can reference any point in the cube, and may be of any type. When used properly, the structure was marvelous. When abused,

Re: Collections

2018-03-21 Thread Lee Hinde via 4D_Tech
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

Re: Where can I find 4D Internet Commands (for v16)?

2018-03-21 Thread John DeSoi via 4D_Tech
In the full version download I see both 4D Internet Commands and 4D Pack in the Plugins folder. Also, 4D Internet Commands seems to be installed by default in the 4D application. So you don't really have to install it at all if you want to use the version that matches the 4D version you have.

RE: Where can I find 4D Internet Commands (for v16)?

2018-03-21 Thread Timothy Penner via 4D_Tech
Hi Bob, After you install v16.x the 4DIC plugin should be in the installation folder. For v16.3 check the following locations: On Windows 32 bit, C:\Program Files (x86)\4D\4D v16.3\Plugins\ On Windows 64 bit, C:\Program Files\4D\4D v16.3\Plugins\ On Mac 32 bit, /Applications/4D v16.3/32-bit

Re: Where can I find 4D Internet Commands (for v16)?

2018-03-21 Thread Jim Dorrance via 4D_Tech
Hi Bob, Sorry, I don't know. Jim On Wed, Mar 21, 2018 at 9:00 PM, Bob Miller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Jim, > > I feel a bit silly, but I've just killed an hour looking for the v16 > version of "4D Internet Commands".The v16 Conversion manual specifies > there are

Re: Collections

2018-03-21 Thread Tom Swenson via 4D_Tech
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 on behalf of 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.

Where can I find 4D Internet Commands (for v16)?

2018-03-21 Thread Bob Miller via 4D_Tech
Hi Jim, I feel a bit silly, but I've just killed an hour looking for the v16 version of "4D Internet Commands".The v16 Conversion manual specifies there are differences between v15 and v16, so I presume there is a v16 version out there, but I don't see it on the FTP site (mostly old stuff

Re: overlapping subforms

2018-03-21 Thread Kirk Brooks via 4D_Tech
Hey Piotr, On Wed, Mar 21, 2018 at 2:50 AM, Piotr Chabot Stadhouders via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > another approach that results in the same UI. > I have converted the parent form, with 23 programmatically build listboxes > on it that are show/hidden, into a parent form with 7

Write Pro setting print options

2018-03-21 Thread Pat Bensky via 4D_Tech
I use SET PRINT OPTION(Paper option;"A4") to set the page size to A4. But this doesn't seem to work. If I view the document that was created, go to Document->Page size No page size is selected. I choose A4 and the page size changes accordingly. BTW if I go again to Document->Page size, it

RE: overlapping subforms

2018-03-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk, Thanks for diving into my subform problem > another approach that results in the same UI. I have converted the parent form, with 23 programmatically build listboxes on it that are show/hidden, into a parent form with 7 subforms with static listboxes (columns created in design mode)