Re: Macro question - using project methods in a macro

2018-07-05 Thread Keisuke Miyako via 4D_Tech
there is no need to use the clipboard. I don't which example you saw, but I have always used SET MACRO PARAMETER since v11 (Macros v2). One piece of advise is to protect the method called from macro by doing something like Macro_MyMethod(;) C_TEXT($1;$2) $methodName:=$1 $methodPath:=$2 If

Re: Macro question - using project methods in a macro

2018-07-05 Thread Wayne Stewart via 4D_Tech
Kirk, Download the 4D Pop source code and look at the macros component for some examples. Regards, Wayne On 6 July 2018 at 10:47, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: > Kirk, > > I think you are looking for GET MACRO PARAMETER and SET MACRO PARAMETER. In > the method called

Re: Macro question - using project methods in a macro

2018-07-05 Thread John DeSoi via 4D_Tech
Kirk, I think you are looking for GET MACRO PARAMETER and SET MACRO PARAMETER. In the method called by your macro, that allows you to get/set the selection or the entire method. John DeSoi, Ph.D. > On Jul 5, 2018, at 5:08 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I

RE: Date entry

2018-07-05 Thread Timothy Penner via 4D_Tech
> I'm using v16r6 and it won't let me revert to 16.3. Just to clarify, this is likely because object notation has been enabled; which essentially upgrades the structure file from v16 to v17, making it unable to be opened in v16 afterwards. See this image and the warning about it not being able

RE: What Happened to 4D v16 r6?

2018-07-05 Thread Timothy Penner via 4D_Tech
Yeah, it is safe to continue using v16R6; the removal from the website was unintentional. -Tim From: Alan Tilson [mailto:alantil...@gmail.com] Sent: Thursday, July 05, 2018 4:25 PM To: Timothy Penner Cc: 4D_Tech <4d_tech@lists.4d.com> Subject: Re: What Happened to 4D v16 r6? Hello Timothy,

Re: What Happened to 4D v16 r6?

2018-07-05 Thread Alan Tilson via 4D_Tech
Hello Timothy, Thanks for the info so I can relax and keep using r6! Alan sent from my Note 4 On Thu, Jul 5, 2018, 6:56 PM Timothy Penner wrote: > Hi Alan, > > Looks like a snafu with the web site (perhaps the content got rolled > back?) > > We are checking with the team on the website

Re: What Happened to 4D v16 r6?

2018-07-05 Thread Kirk Brooks via 4D_Tech
On Thu, Jul 5, 2018 at 3:56 PM Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Looks like a snafu with the web site (perhaps the content got rolled > back?) > ​Well, yeah - I've done that too...​ -- Kirk Brooks San Francisco, CA === *We go vote - they go

RE: What Happened to 4D v16 r6?

2018-07-05 Thread Timothy Penner via 4D_Tech
Hi Alan, Looks like a snafu with the web site (perhaps the content got rolled back?) We are checking with the team on the website content. In the meantime, here is a direct link for v16R6: http://download.4d.com/Products/Current/4D_v16R6/Installers/ -Tim

Macro question - using project methods in a macro

2018-07-05 Thread Kirk Brooks via 4D_Tech
Hi folks, I haven't tinkered with my macros in quite a while. Today I was trying to write a project method that returns some text. The idea being to run the method from a macro and plug the result directly into the method being edited. Here's the what I was working with: resdoc_macro() Is this

Re: What Happened to 4D v16 r6?

2018-07-05 Thread Kirk Brooks via 4D_Tech
Just speculating (based on why I would do something like that) - some really bad thing was found that happens rarely but is very, very bad when it does. On Thu, Jul 5, 2018 at 1:43 PM Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Weird... > > > On Jul 5, 2018, at 4:14 PM, Alan Tilson

Re: Alternating Background Colors in a List form

2018-07-05 Thread Chip Scheide via 4D_Tech
more flexible... List form = listbox OBJECT SET RGB COLORS(Listbox reference ; (foreground) text color; background color; alternate background color) List form = 4D 'standard' type output form. not sure On Thu, 05 Jul 2018 16:52:53 -0400, Jim Medlen via 4D_Tech wrote: > > Is there a way to

Re: Alternating Background Colors in a List form

2018-07-05 Thread Wayne Stewart via 4D_Tech
Jim, Did you mean an output form (or included form) and not a list box? Place a rectangle behind the detail area of the form and run the following code in the on display detail event: : (Form event=On Display Detail) If (Displayed line number%2=0) OBJECT SET RGB

Alternating Background Colors in a List form

2018-07-05 Thread Jim Medlen via 4D_Tech
Is there a way to have alternating background colors for a List Form ? Thanks, Jim Medlen Computer & Information Systems Functional Devices, Inc. j.med...@functionaldevices.com phone (765) 883-5538 x 428 fax (765) 883-4262 http://www.functionaldevices.com This email was transmitted on 100

Re: What Happened to 4D v16 r6?

2018-07-05 Thread Jeffrey Kain via 4D_Tech
Weird... > On Jul 5, 2018, at 4:14 PM, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hello, > > I have been working with v16 r6 for a while and I was going to download it > again on another machine and only r4 is available. > > Can someone shed some light on this?

What Happened to 4D v16 r6?

2018-07-05 Thread Alan Tilson via 4D_Tech
Hello, I have been working with v16 r6 for a while and I was going to download it again on another machine and only r4 is available. Can someone shed some light on this? Thanks, Alan ** 4D Internet Users Group (4D iNUG) FAQ:

RE: Quitting without IP var?

2018-07-05 Thread Timothy Penner via 4D_Tech
Hi Chip, You don’t need to use an interprocess variable... You can use a process variable as described in this tech tip: Tech Tip: Always make sure your Stored Procedure is able to gracefully quit http://kb.4d.com/assetid=77839 Quote Chip: > the method called from exiting the program

RE: UUID version 4 needed

2018-07-05 Thread Dennis, Neil via 4D_Tech
> As far as I know most computers generate pseudo random and if so will > increase chance of UUID's colliding no? Correct > However it would be an advantage to "know" what the limitations (of what we > mostly use to generate unique keys) are For there to be a one in a billion chance of

Re: UUID version 4 needed

2018-07-05 Thread Keisuke Miyako via 4D_Tech
I'm not sure how that would solve any uncertainties. 4D is a native Win32/Cocoa/Carbon app, so it would be natural to assume that it simply calls UuidCreate on Windows and [NSUUID UUID] or CFUUIDCreate on Mac. but will then go on to ask Apple and Microsoft the same question? as already pointed

RE: UUID version 4 needed

2018-07-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Neil, For some reason I thought it is not version 4. I hope you are right! @Steven : Unfortunately the webservice we are talking with demands a message with a UUID version 4 generated message ID. Don't ask me why. Gr, Piotr > -Oorspronkelijk bericht- > Van: Dennis, Neil >

RE: UUID version 4 needed

2018-07-05 Thread Jim Labos - infobase via 4D_Tech
This brings up the question of shouldn't 4D confirm what method they are using? The random (version 4) does rely on the host computer's system to generate the randomness I would assume so that becomes the weakness (according to the definitions). As far as I know most computers generate pseudo

Re: Date entry

2018-07-05 Thread Jody Bevan via 4D_Tech
Pat: I was a lot of work. Especially going through a large application and changing it all over. We got forced into it by regulation of supporting different date formats across different government regulatory regions. So we decided to just do it the flexible way and provide many more features

RE: UUID version 4 needed

2018-07-05 Thread Dennis, Neil via 4D_Tech
> Does anybody know how to generate an UUID version 4 Doesn't 4D already generate version 4 UUIDs? In version 4 the 15th hex digit is always a 4, it seems that this is what 4D uses. If you need a good explanation, of the various types, wikipedia works

Re: Date entry

2018-07-05 Thread Pat Bensky via 4D_Tech
Thanks Jody - yes I can follow all that, no problem :) Sounds like a fair bit of work though, which I would prefer to avoid ... PB On Thu, 5 Jul 2018 at 15:37, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> wrote: > Pat: > > In Canada every possible date format was used by different clients. >

RE: UUID version 4 needed

2018-07-05 Thread Stephen J. Orth via 4D_Tech
Piotr, I'm curious why you would need a V4 version, because the only difference between the two types is "uniqueness" versus "randomness". Best, Steve -Original Message- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Piotr Chabot Stadhouders via 4D_Tech Sent:

UUID version 4 needed

2018-07-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, I need to generate an UUID but it MUST be version 4 I know in 4D there is the command Generate UUID and the NTK plugin has the command NTK Create UUID but as far as I know they both are not UUID version 4 Does anybody know how to generate an UUID version 4? Thanks, Piotr

Re: Date entry

2018-07-05 Thread Jody Bevan via 4D_Tech
Pat: In Canada every possible date format was used by different clients. Therefore we had to write our own date handler. Essentially we handle it this way: 1. We let the system administrator set the format for all dates to be displayed. This includes all the ways 4D has built in way, but also

Re: Date entry

2018-07-05 Thread Chip Scheide via 4D_Tech
I am not using anything near v16... but have you tried to explicitly set the display format for the date areas during On Load, using code? set object format(*"object_name";Date_format) On Thu, 5 Jul 2018 12:43:55 +0100, Pat Bensky via 4D_Tech wrote: > Thanks Wayne. > I'm using v16r6 and it won't

Re: Date entry

2018-07-05 Thread Pat Bensky via 4D_Tech
Thanks Wayne. I'm using v16r6 and it won't let me revert to 16.3. I don't think v17 is ready for prime time yet ... Grrr! So, anybody got a suggestion for a workaround? PB On Thu, 5 Jul 2018 at 12:23, Wayne Stewart via 4D_Tech <4d_tech@lists.4d.com> wrote: > Pat, > > There’s a 4D bug regarding

Re: Date entry

2018-07-05 Thread Wayne Stewart via 4D_Tech
Pat, There’s a 4D bug regarding dates. What version of v16 are you using? The latest nightly builds of v16 dot releases should be fine. If you’re using 16r something, then it’s fixed in v17. Wayne On Thu, 5 Jul 2018 at 20:50, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> wrote: > Jody, >

Cannot delete if related many issue

2018-07-05 Thread Arnaud de Montard via 4D_Tech
I have a database in which Deletion Control is set as in the object for a lot of relations. Today, deleting 10 records in a table having ~2 billion records took an incredible time, cache as shark teeth, unable to connect and so on. Finally we had to kill the server. After setting Deletion

Re: Date entry

2018-07-05 Thread Pat Bensky via 4D_Tech
Jody, I'm using v16 and having the following problem with date formats: On a UK system, dates in fields and list boxes are incorrectly displayed in the US format. But when you click into a date field, it changes to the UK format! How do you manage this? Pat On Sun, 10 Jun 2018 at 15:46, Jody

Code Signing Failing

2018-07-05 Thread Eric Asadoorian via 4D_Tech
I have had little success attempting to code sign a C/S built app. This issue has always been a problem, but one way or another, I have found a method to get it to work. Previously, I had a v13 DB working in Mountain Lion. I signed the application with a Self Signed Cert. Presently, trying