Menubar 1

2019-02-20 Thread David Ringsmuth via 4D_Tech
4D v17R4 2323298 64bit Remote OSX 10.16+ At the end of my startup method Menubar 1 is displayed. On some client machines the menu items are not “active”. When selected they do not run the assigned method. On other client machines running the same application at the same time, all items on

interesting find

2019-02-20 Thread Chuck Miller via 4D_Tech
I have found something in v17 that I did not think would work I have a method which is always passed a pointer. I made a mistake way back when in v15 The compiler declaration is c_pointer (method;$1) while in the method it was c_text. What is strange is that it has worked in v15 but in 17 it

4D 17.1 duplicate constant

2019-02-20 Thread John DeSoi via 4D_Tech
Just killed a bunch of time trying to figure out why some menu actions were not working for a host menu duplicated by a component. It turns out the "Associated standard action" constant is duplicated with different values and 4D does not use the same one in all cases. John DeSoi, Ph.D.

Re: Epoch time in milliseconds

2019-02-20 Thread Arnaud de Montard via 4D_Tech
> Le 19 févr. 2019 à 23:51, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> > a écrit : > > > Actually I just realised this may be a timezone issue rather than a precision > issue. > > I’ve done it this way: [...] You may be interested by 2 methods from Bruno Legay about epoch in the

Re: interesting find

2019-02-20 Thread Kirk Brooks via 4D_Tech
I have noticed the compiler in v17 is significantly better at flagging little errors like that. And a lot of others. There were some wonky things in a database I converted which is in active use, compiled, all vars typed. I thought v17 must have corrupted the code somehow because I just didn't

Re: Epoch time in milliseconds

2019-02-20 Thread Peter Jakobsson via 4D_Tech
Thanks Arnaud ! Very useful indeed. Bruno has been very productive in this area. > On 20 Feb 2019, at 22:19, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > You may be interested by 2 methods from Bruno Legay about epoch in the code > sharing zone: >

RE: interesting find

2019-02-20 Thread Timothy Penner via 4D_Tech
I have been telling people for years that the compiler gets smarter in each new version. You may have a line of code that you thought was working, but in fact, it shouldn’t have worked at all, and the compiler may not have caught it before, but now it does. This is something I frequently tell

Re: Epoch time in milliseconds

2019-02-20 Thread Peter Jakobsson via 4D_Tech
> On 20 Feb 2019, at 01:29, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > $P_timeString:=String(Current date(*);ISO date GMT;Current time(*)) > > does this not invoke 2 calls to the server in C/S mode? Good point Miyako. (I stopped worrying about optimising for performance