Re: Communicating With BLE Devices

2017-10-11 Thread JasonH via 4D_Tech
Speaking of Arduino's, for school I had to buy a starter kit for my son. He won't actually need it for another month or two, but of course I immediately busted it out and started playing with it (so I can help him with his school work when they get to working on them ) It's been fun working

Re: 4D v16.2 false record locks

2017-10-11 Thread Alan Tilson via 4D_Tech
Hey John, How did you end up in Hawaii? Alan On Wed, Oct 4, 2017 at 10:02 PM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I am going to chime in here with a recent real world experience. > > A while back I posted to the NUG a problem that I was having with external > data storage

Re: 4D v16.2 false record locks

2017-10-11 Thread Alan Tilson via 4D_Tech
sorry, meant to send this directly to John! Alan On Wed, Oct 11, 2017 at 11:09 PM, Alan Tilson wrote: > Hey John, > How did you end up in Hawaii? > Alan > > On Wed, Oct 4, 2017 at 10:02 PM, John Baughman via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> I am going to chime

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Timothy Penner via 4D_Tech
No, SQL does not work with the selection. I missed that requirement when I read the original post but I see it now. -Tim Sent from my Verizon, Samsung Galaxy smartphone Original message From: Alan Tilson Date: 10/11/17 6:05 PM (GMT-08:00) To:

RE: Min/Max for Date Fields in 4D

2017-10-11 Thread Alan Tilson via 4D_Tech
Hello Timothy, Great idea, but can this work on the current selection? Thanks, Alan sent from my Note 4 On Oct 11, 2017 8:32 PM, "Timothy Penner via 4D_Tech" <4d_tech@lists.4d.com> wrote: What about SQL? It works for me (only tested v16)... // find the Min C_DATE($blankDate)

Re: Communicating With BLE Devices

2017-10-11 Thread Keisuke Miyako via 4D_Tech
it seems the cross platform libraries are all cross-mobile-platforms. couldn't find anything for desktop windows and macos. https://developer.apple.com/documentation/corebluetooth?language=objc https://developer.apple.com/library/content/samplecode/TemperatureSensor/Introduction/Intro.html

RE: Min/Max for Date Fields in 4D

2017-10-11 Thread Timothy Penner via 4D_Tech
What about SQL? It works for me (only tested v16)... // find the Min C_DATE($blankDate) C_DATE($foundDate) Begin SQL SELECT MIN(DateField) FROM SomeTable WHERE DateField <> :$blankDate INTO :$foundDate; End SQL // find the MAX C_DATE($foundDate) Begin SQL SELECT MAX(DateField) FROM SomeTable

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Jeffrey Kain via 4D_Tech
It probably depends on what the server is doing, and the load it’s under, etc.. > On Oct 11, 2017, at 6:55 PM, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > It seems that sorting the table is faster than using an array, even after > returning the selection to it's original order,

Re: ​NB: Pre-emptive mode hassle

2017-10-11 Thread steve simpson via 4D_Tech
On Wed, Oct 11, 2017 at 3:00 PM, ​ Tim Nevels wrote: > ​[snip] > > > I sure can. Remember when C_OBJECT variables were introduced? There were > several developers here that talked about completely overhauling all their > code to eliminate process and interprocess variables and replace all of it >

Re: Print From Web Area

2017-10-11 Thread Kirk Brooks via 4D_Tech
Cannon, If the web area isn't using the WebKit it's rendered using whatever the system browser is. I think that would mean that browser would be used to print it as well but I haven't really tested that. On Wed, Oct 11, 2017 at 2:58 PM, Cannon Smith via 4D_Tech < 4d_tech@lists.4d.com> wrote: >

Re: Updater v16

2017-10-11 Thread Sujit Shah via 4D_Tech
So if I include a complete build (using the build application command for example) the updater will replace the files in the application folder from the update folder? On Thu, 12 Oct 2017 at 9:38 am, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > the page links to SET UPDATE FOLDER

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Alan Tilson via 4D_Tech
Hello everyone, It seems that sorting the table is faster than using an array, even after returning the selection to it's original order, only taking a few ticks on 55k records! Below is my code should anyone else come across this. I tried it Execute on Server but the method didn't see the current

Communicating With BLE Devices

2017-10-11 Thread Cannon Smith via 4D_Tech
Is anyone aware of a way to communicate with a Bluetooth Low Energy device from 4D? It needs to work on both platforms. Perhaps a plugin that I’m not aware of? (Note that BLE devices communicate in a completely different way than classic Bluetooth devices.) Thanks for any pointers. --

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Alan Tilson via 4D_Tech
Arnaud, Max & Min don't work for date fields or date arrays it seems. I get values like 5.67746e+17? Is there a way to translate this to a date? Thanks, Alan On Wed, Oct 11, 2017 at 6:36 PM, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > Le 11 oct. 2017 à 23:30, Alan Tilson

Re: Updater v16

2017-10-11 Thread Keisuke Miyako via 4D_Tech
the page links to SET UPDATE FOLDER http://doc.4d.com/4Dv16R4/4D/16-R4/SET-UPDATE-FOLDER.301-3317772.en.html which links to the page about automatic update feature http://doc.4d.com/4Dv16R4/4D/16-R4/Automatic-updating-of-server-or-single-user-applications.300-3330296.en.html when used outside

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Arnaud de Montard via 4D_Tech
> Le 11 oct. 2017 à 23:30, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Greetings everyone, > > Is there a way to get the earliest and latest dates from a selection of > records similar to using Min/Max for numerical data? $max_d:=Max([aTable]aDate)

Re: v12 Web Areas

2017-10-11 Thread Keisuke Miyako via 4D_Tech
the web area on windows v12 uses an old (comparable to IE7) control, which, unlike v13 and later, does not even benefit from the latest security patches available on the system. public web sites (or even modules such as jquery) that do not support IE7 may refuse to run on the v12 web area. >

Re: Is Table Number Valid Cannot Validate New Temporary Table

2017-10-11 Thread Keisuke Miyako via 4D_Tech
perhaps you could take advantage of the "execute on server" method to make sure the functions are called on the server side. (Get last table number, GET MISSING TABLE NAMES) the request log is the best way to confirm, but perhaps an update to the structure is not necessarily pushed to all clients

Print From Web Area

2017-10-11 Thread Cannon Smith via 4D_Tech
Hi All, If I generate a report in HTML and show it in a web area on a form, is there a way I can request that it be printed in exactly the same way as if it was in Safari or Firefox and printed from there? Thanks. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Alan Tilson via 4D_Tech
Hello David, I'd rather not sort the selection since it's generally already sorted. But I could do this, although it seems like a lot of overhead compared to the min/max functions: Longint array from selection order by(date field;>) $Date_min:=date field Last record $Date_mix:=date field create

RE: Min/Max for Date Fields in 4D

2017-10-11 Thread David Ringsmuth via 4D_Tech
Alan, Sort the selection by the Date field, take the first Date, and then goto selected record (table;records in selection(table)), and get that Date. This avoids loading much, except the date field sort. Hth! David Ringsmuth From: Alan Tilson via 4D_Tech Sent: Wednesday, October 11, 2017

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Alan Tilson via 4D_Tech
Douglas, Thank you for responding. I believe Scan Index works on all the records in a Table, not on the Current Selection? What I'm looking for is a way to easily extract the earliest and latest dates contained in a field in a selection of records. Any other ideas? Thanks again, Alan On Wed, Oct

Re: Min/Max for Date Fields in 4D

2017-10-11 Thread Douglas von Roeder via 4D_Tech
Alan: If the field's indexed, how about Scan index? -- Douglas von Roeder 949-336-2902 On Wed, Oct 11, 2017 at 2:30 PM, Alan Tilson via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Greetings everyone, > > Is there a way to get the earliest and latest dates from a selection of > records similar to

Min/Max for Date Fields in 4D

2017-10-11 Thread Alan Tilson via 4D_Tech
Greetings everyone, Is there a way to get the earliest and latest dates from a selection of records similar to using Min/Max for numerical data? I have sorted the data and captured the first and last dates but this seems rather a lot of work to get this info. I believe that I have also used

Re: Making LOG EVENT thread-safe

2017-10-11 Thread David Adams via 4D_Tech
Hey John, we ended up testing different things, I didn't ever get too far into the memory side. (Thanks for that, good to know.) I retested again last night and I can kill 4D from entirely legal code. I'll show you at dinner, if you like. There is a *concurrency bug*. I'm not convinced that

Re: Making LOG EVENT thread-safe

2017-10-11 Thread John Baughman via 4D_Tech
One thing I forgot to mention/ask… David’s test routine runs significantly faster with 32-bit 4D than it does with 64-bit 4D. Any ideas as to why this might be the case? To refresh memories as to what the test is doing… For ($1;1;10) $prsNum:=New Process(“TestProcess”.0;”TestProcess”)

Re: NB: Pre-emptive mode hassle

2017-10-11 Thread Tim Nevels via 4D_Tech
On Oct 11, 2017, at 10:40 AM, David Adams wrote: > If you don't mind and are on the forums, would you mind putting in a > feature request? And, for what it's worth, it would be super weird if they > *hadn't* thought of this. The languages they write in have all kinds of > compiler pre-processing

Re: Making LOG EVENT thread-safe

2017-10-11 Thread John Baughman via 4D_Tech
Got an email from Timothy Penner yesterday pointing out that in his testing of this issue he has concluded that the crash occurs because 4D is being pushed past it’s memory limits. That is if run using the 32bit version of 4D. Tim suggested that we run the test using the 64 bit version of 4D.

Re: v12 Web Areas

2017-10-11 Thread Ortwin Zillgen via 4D_Tech
> I have tried the same 4D and html in v16 and I get the map to show but > stragely, with both Google Maps and Leaflet, I get the map but the markers > are not added to it. I have also tried a demo database from this years 4D > World Tour, which shows the map in the 4D web area but not the

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jim Dorrance via 4D_Tech
No, the pointer is nil. I finally execute a host process that executes a component process that returns the picture to the host to be copied to a host form var. There must be a simpler way:( On Wed, Oct 11, 2017 at 5:49 PM, Jeremy Roussak via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Can’t the

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jeremy Roussak via 4D_Tech
Can’t the pointer be passed from the host as a parameter to the method in the host which draws the picture? Just a thought. Jeremy Roussak j...@mac.com > On 11 Oct 2017, at 14:06, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Thanks. > > I just want to copy a SVG picture

Re: Post Key command not working in converted 4Dv16 database - SOLVED

2017-10-11 Thread Ken Daniel via 4D_Tech
All, I finally solved my problem. All I had to do was check* Unicode Mode* in Design > Database Settings > Compatibility. Thanks very much to everyone for their suggestions and help. :-) Ken *P.S. Ultimately it was Vance Villanueva from 4D Tech Support that helped me solve the problem. He

Re: Is Table Number Valid Cannot Validate New Temporary Table

2017-10-11 Thread Mark Scardigno via 4D_Tech
Miyako, One of the problems is that 'Get Last Table Number’ doesn’t acknowledge the new temporary table at all, but the Util_GetTableNum function does. For example, after I create the temporary table, Util_GetTableNum returns table number 51. But then when 'Is Table Number Valid’ fails in my

v12 Web Areas

2017-10-11 Thread David Weinberg via 4D_Tech
Hi All, I have a system that is still using 4D v12. I am trying to add a map to Web Area. I had it working at the end of last year as a proof of concept. Now however, despite the HTML working directly in a browser, I am unable to get the JavaScript to run. I just get a blank window. This is on a

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jim Dorrance via 4D_Tech
Thanks. I just want to copy a SVG picture created in a component ( using lots of data only available in the subform) to the host form. On Wed, Oct 11, 2017 at 2:21 PM, Jeremy Roussak via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Jim, > > I do it via a callback routine in the host. To make things

Re: How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jeremy Roussak via 4D_Tech
Jim, I do it via a callback routine in the host. To make things easy, the component creates several methods in the host the first time it’s used. Jeremy Jeremy Roussak j...@mac.com > On 11 Oct 2017, at 13:02, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > How can a component

How can a component get a pointer to a host form (dynamic) variable?

2017-10-11 Thread Jim Dorrance via 4D_Tech
How can a component method get a pointer to a host form (dynamic) variable? -- Jim Dorrance jim.dorra...@gmail.com 4...@dorrance.eu www.4d.dorrance.eu PS: If you know of anyone that needs an experienced 4D programmer to add energy and experience to their team, please let me know. I have