Re: Numeric Array Variable Not Reset When Array Redefined

2017-11-27 Thread Pat Bensky via 4D_Tech
The selected or specified value of the array is stored in the "zeroeth" element. On 26 November 2017 at 16:48, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Le 26 nov. 2017 à 17:37, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > a écrit : > > > > Allan, > > I went along for

Re: Numeric Array Variable Not Reset When Array Redefined

2017-11-27 Thread Kirk Brooks via 4D_Tech
Pat, On Mon, Nov 27, 2017 at 1:33 AM, Pat Bensky via 4D_Tech < 4d_tech@lists.4d.com> wrote: > The selected or specified value of the array is stored in the "zeroeth" > element. > ​I don't think that's universally true any longer. It's the way things like popup lists and combo boxes work or scrol

Re: Reject data entry in named selection list box

2017-11-27 Thread Chip Scheide via 4D_Tech
I have not tried this, however: - Form event : On Before Data Entry (listbox only) - track which cell/record you are in from documentation -- A list box cell is about to change to editing mode - Form event : On After Edit - do your data validation. from documentation -- The contents of the e

16R5 checks array element twice

2017-11-27 Thread Jim Hays via 4D_Tech
This is just a weird oddity I came across. I can't think of a good reason to use this code in a safe way, but here it is. (If anyone can think of a legitimate case where you might risk range check errors, etc., I might submit a bug report. Maybe there is another reason to use a function to retur

Re: 16R5 checks array element twice

2017-11-27 Thread Pat Bensky via 4D_Tech
It behaves the same with in v16r4 also. Seems like a bug to me! Pat On 27 November 2017 at 22:28, Jim Hays via 4D_Tech <4d_tech@lists.4d.com> wrote: > This is just a weird oddity I came across. I can't think of a good reason > to use this code in a safe way, but here it is. (If anyone can think

The speed penalty for pointers is pretty low compiled

2017-11-27 Thread Kirk Brooks via 4D_Tech
I still have a lingering sense that using pointers to variables imposes a noticeable speed penalty on code execution time. It's an old sense. I was just thinking about it while using a simple method I have for doing Increments. It's called Increment, takes a pointer to a var and adds 1 to it. $1->

4D v16.2 64-bit Server and 32-bit Clients?

2017-11-27 Thread Justin Leavens via 4D_Tech
I think I remember that this configuration on the Mac is okay, but I could use some confirmaiton: a 64-bit 4D Server (which enables me to use maximum RAM for cache) and 32-bit 4D client apps (because ALP isn't yet 64-bit compatible). Are there any reasons why I would run into trouble with this con

Re: 4D v16.2 64-bit Server and 32-bit Clients?

2017-11-27 Thread Spencer Hinsdale via 4D_Tech
Hi Justin, Yes, this works perfectly, especially if you have third-party plugins that are not updated ;p This setup uses the new Network Layer, which seems to me problem-free on Mac. Windows Server seems more problematic but can be reverted to Legacy Network Layer. 16.3 will be along momenta

Re: Numeric Array Variable Not Reset When Array Redefined

2017-11-27 Thread Allan Udy via 4D_Tech
Allan, I went along for quite a while before realizing changing the size of the array didn't clear it too. I tend to use the array declaration commands to declare, once, and nothing else. For "else", there is INSERT IN ARRAY, APPEND TO ARRAY, DELETE FROM ARRAY, CLEAR VARIABLE… Hi Arnaud,

4D Debug Log Reader - Plugin Commands

2017-11-27 Thread Allan Udy via 4D_Tech
HI, A while back I got hold of the v15 '4D Debug Log Reader' database in order to view some of 4D's Low Level debugging Log files. It helped me a lot at the time. I've still got the Read Me pdf but it doesn't say where this came from or who wrote it, and I've now forgotten. The applicatio

Re: 4D Debug Log Reader - Plugin Commands

2017-11-27 Thread Justin Carr via 4D_Tech
On 28 Nov 2017, at 1:52 pm, Allan Udy via 4D_Tech <4d_tech@lists.4d.com> wrote: > > HI, > > A while back I got hold of the v15 '4D Debug Log Reader' database in order to > view some of 4D's Low Level debugging Log files. It helped me a lot at the > time. > > I've still got the Read Me pdf but

Re: Numeric Array Variable Not Reset When Array Redefined

2017-11-27 Thread Chip Scheide via 4D_Tech
or.. Just set the value Array{0} = to a zero value > Thus it is important to use Clear Variable Hell is other people Jean-Paul Sartre ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Ar