4D Write Pro Undo

2018-07-06 Thread JOHN BAUGHMAN via 4D_Tech
Looks to me like Undo can be a bit tricky with 4D Write Pro. For example if I 
add an image to a WP area with WP Add Picture and then hit command-Z it 
dutifully removes the image. If however I change the image using WP SET 
ATTRIBUTES(imageRef;wk Image;myPicture), a Command-Z will cause the Image to be 
removed. Whatever mechanism is storing the undo chain is apparently not 
recognizing the SET ATTRIBUTE command.

I am guessing that this is much like the saving of a c_object in a record where 
the record is not set dirty when a child parameter us updated unless you do 
something else to make it dirty like 
[mytable]mycobjectfld:=[mytable]mycobjectfld



John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
john...@hawaii.rr.com

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Kirk Brooks via 4D_Tech
On Fri, Jul 6, 2018 at 3:03 PM Richard Wright via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Self-modifying AI code running interpreted is better than dumb code
> running compiled. Besides, I rarely write code anymore, my AI program does
> it for me (when it’s not driving my car).
>

​Do say more...
​
-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: parsing XML - related to Konstants

2018-07-06 Thread Bruno LEGAY via 4D_Tech
Hi,

> is it possible to parse XML, in a manner in which you can also access 
> any comments in the file?
Yes, it is possible since 4D v12 with the command DOM GET XML CHILD NODES.

Bruno LEGAY
A Consulting



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Richard Wright via 4D_Tech
Self-modifying AI code running interpreted is better than dumb code running 
compiled. Besides, I rarely write code anymore, my AI program does it for me 
(when it’s not driving my car).

> Date: Fri, 6 Jul 2018 10:50:02 -0700
> From: Kirk Brooks 
> 
> Richard,
> Well you couldn't do that compiled in any event. What you could do is write
> code that runs scripts external to the compiled structure using Process
> Tags.
> 
> On Fri, Jul 6, 2018 at 9:47 AM Richard Wright via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Yeah, but how am I supposed to implement AI in 4D without self-modifying
>> code? ;-)
>>> Date: Fri, 6 Jul 2018 01:08:17 +
>>> From: Keisuke Miyako 
>>> 
>>> you want to exclude the macro method from accidentally editing itself.
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: parsing XML - related to Konstants

2018-07-06 Thread Chip Scheide via 4D_Tech
Thanks!

On Fri, 6 Jul 2018 20:17:05 +, Keisuke Miyako via 4D_Tech wrote:
> if you want to access comments,
> 
> use DOM Append XML child node
> 
http://doc.4d.com/4Dv15/4D/15.6/DOM-Append-XML-child-node.301-3817432.en.html
> for writing
> 
> and DOM GET XML CHILD NODES
> http://doc.4d.com/4Dv15/4D/15.6/DOM-GET-XML-CHILD-NODES.301-3817433.en.html
> for reading
> 
>> 2018/07/07 1:30、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> 
>> is it possible to parse XML, in a manner in which you can also access
>> any comments in the file?
>> 
>> What I am thinking is that the 4DPop constants editor does not have a
>> means to add a comment to the .xlf file, but it seems that this could
>> easily be added, so that I could comment my Konstants. however, what
>> occurs to me is that I don't think I can/could get the comments back
>> from the .xlf file.
>> 
>> I do not really know enough about xml parsing to know if this is
>> possible, without writing my own parsing routine to read the .xlf file
>> as a plain text and then rip it apart.
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: parsing XML - related to Konstants

2018-07-06 Thread Keisuke Miyako via 4D_Tech
if you want to access comments,

use DOM Append XML child node
http://doc.4d.com/4Dv15/4D/15.6/DOM-Append-XML-child-node.301-3817432.en.html
for writing

and DOM GET XML CHILD NODES
http://doc.4d.com/4Dv15/4D/15.6/DOM-GET-XML-CHILD-NODES.301-3817433.en.html
for reading

> 2018/07/07 1:30、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> is it possible to parse XML, in a manner in which you can also access
> any comments in the file?
>
> What I am thinking is that the 4DPop constants editor does not have a
> means to add a comment to the .xlf file, but it seems that this could
> easily be added, so that I could comment my Konstants. however, what
> occurs to me is that I don't think I can/could get the comments back
> from the .xlf file.
>
> I do not really know enough about xml parsing to know if this is
> possible, without writing my own parsing routine to read the .xlf file
> as a plain text and then rip it apart.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

v13+ - OPen Recent list

2018-07-06 Thread Chip Scheide via 4D_Tech
is there a way to increase the length (number of items) in the list?
it appears that 12 items (for local) is a limit.

Thanks
Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Chip Scheide via 4D_Tech
You can store the code in the data file  !!!

use an object field to store any related information (context etc)
and then pray that nothing it depends on has a name change (like a 
field or table)

:)


On Fri, 6 Jul 2018 10:50:02 -0700, Kirk Brooks via 4D_Tech wrote:
> Richard,
> Well you couldn't do that compiled in any event. What you could do is write
> code that runs scripts external to the compiled structure using Process
> Tags.
> 
> On Fri, Jul 6, 2018 at 9:47 AM Richard Wright via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Yeah, but how am I supposed to implement AI in 4D without self-modifying
>> code? ;-)
>>> Date: Fri, 6 Jul 2018 01:08:17 +
>>> From: Keisuke Miyako 
>>> 
>>> you want to exclude the macro method from accidentally editing itself.
>> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *We go vote - they go home*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Kirk Brooks via 4D_Tech
Richard,
Well you couldn't do that compiled in any event. What you could do is write
code that runs scripts external to the compiled structure using Process
Tags.

On Fri, Jul 6, 2018 at 9:47 AM Richard Wright via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Yeah, but how am I supposed to implement AI in 4D without self-modifying
> code? ;-)
> > Date: Fri, 6 Jul 2018 01:08:17 +
> > From: Keisuke Miyako 
> >
> > you want to exclude the macro method from accidentally editing itself.
>

-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: What Happened to 4D v16 r6?

2018-07-06 Thread Timothy Penner via 4D_Tech
Hi Pat,

Quote Pat:
> Where can we find the latest build of r6? I looked on the forum but couldn't 
> find any info.

Quote myself:
> > In the meantime, here is a direct link for v16R6:
> > http://download.4d.com/Products/Current/4D_v16R6/Installers/

Kind Regards,

Tim



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Richard Wright via 4D_Tech
Yeah, but how am I supposed to implement AI in 4D without self-modifying code? 
;-)


> Date: Fri, 6 Jul 2018 01:08:17 +
> From: Keisuke Miyako 
> 
> 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 ($methodPath#Current method path)
> 
> GET MACRO PARAMETER(Full method text;$methodCode)
> 
> //do stuff
> 
> SET MACRO PARAMETER(Full method text;$adjustedMethodCode)
> 
> End if
> 
> you want to exclude the macro method from accidentally editing itself.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

parsing XML - related to Konstants

2018-07-06 Thread Chip Scheide via 4D_Tech
is it possible to parse XML, in a manner in which you can also access 
any comments in the file?

What I am thinking is that the 4DPop constants editor does not have a 
means to add a comment to the .xlf file, but it seems that this could 
easily be added, so that I could comment my Konstants. however, what 
occurs to me is that I don't think I can/could get the comments back 
from the .xlf file.

I do not really know enough about xml parsing to know if this is 
possible, without writing my own parsing routine to read the .xlf file 
as a plain text and then rip it apart.

Thanks
Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Minimalism in Graphics

2018-07-06 Thread Jody Bevan via 4D_Tech
Fast enhancement request!

Jody 
> On Jul 6, 2018, at 10:16 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> The color is back in the debugger in v17, just FYI.
> 
>> On Jul 6, 2018, at 11:54 AM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> I was disappointed when I moved from 16R2 to 16R6 to see that 4D Inc had 
>> removed all the colour icons from their interface. As a user of an 
>> application appropriate colour helps me recognize an object quickly. A bit 
>> of splash of colour also enlivens the interface. 
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: UUID version 4 needed

2018-07-06 Thread Keith Culotta via 4D_Tech
$a:=Substring(Generate UUID;13;1)
ALERT($a)

Mac 16.225201 64bit - returns a "4" (client/server)
Mac 17.224978 64bit - returns a "4"

Char 15 is random.

v16 tested on Macs of various ages and 10.12, 10.13.

Keith - CDI

> On Jul 6, 2018, at 10:33 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Hi,
> 
> The Win32API command sys_GetGUID does return a version 4 UUID
> 
> So on Windows :
> Win32API generates a version 4 UUID --> 13th hex digit is a 4
> 4D v16 does not generate a version 4 UUID --> 15th hex digit is a 4

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Minimalism in Graphics

2018-07-06 Thread Jeffrey Kain via 4D_Tech
The color is back in the debugger in v17, just FYI.

> On Jul 6, 2018, at 11:54 AM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I was disappointed when I moved from 16R2 to 16R6 to see that 4D Inc had 
> removed all the colour icons from their interface. As a user of an 
> application appropriate colour helps me recognize an object quickly. A bit of 
> splash of colour also enlivens the interface. 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: UUID version 4 needed

2018-07-06 Thread Chip Scheide via 4D_Tech
after just a bit of google-fu
I found this php routine to generate a UUID. Since, in principle 4D 
supports php... maybe you can just generate your own.

if (!function_exists('com_create_guid')) {
  function com_create_guid() {
return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
mt_rand( 0, 0x ), mt_rand( 0, 0x ),
mt_rand( 0, 0x ),
mt_rand( 0, 0x0fff ) | 0x4000,
mt_rand( 0, 0x3fff ) | 0x8000,
mt_rand( 0, 0x ), mt_rand( 0, 0x ), mt_rand( 0, 0x )
);
  }
}

source:
https://helloacm.com/how-to-create-uuid-in-php/

also there is a bunch of discussion on StackOVerflow regarding 
generating a UUID, in various languages, and platforms


On Fri, 6 Jul 2018 15:33:48 +, Piotr Chabot Stadhouders via 4D_Tech 
wrote:
> Hi,
> 
> The Win32API command sys_GetGUID does return a version 4 UUID
> 
> So on Windows :
> Win32API generates a version 4 UUID --> 13th hex digit is a 4
> 4D v16 does not generate a version 4 UUID --> 15th hex digit is a 4
> 
> 
>> -Oorspronkelijk bericht-
>> Van: Dennis, Neil 
>> Verzonden: vrijdag 6 juli 2018 16:25
>> Aan: Piotr Chabot Stadhouders ; 4D iNug
>> Technical <4d_tech@lists.4d.com>
>> Onderwerp: RE: UUID version 4 needed
>> 
>>> And in fact, my 4D generated UUID is rejected by the web service, 
>>> saying it
>> isn't a 4 version UUID
>> 
>> Very possible, it has been a while since I looked into it and I was 
>> going off of my
>> fuzzy memory.
>> 
>> Neil
>> 
>> 
>> 
>> 
>> --
>> 
>> 
>> Privacy Disclaimer: This message contains confidential information and is
>> intended only for the named addressee. If you are not the named addressee
>> you should not disseminate, distribute or copy this email. Please 
>> delete this
>> email from your system and notify the sender immediately by replying 
>> to this
>> email.  If you are not the intended recipient you are notified that 
>> disclosing,
>> copying, distributing or taking any action in reliance on the 
>> contents of this
>> information is strictly prohibited.
>> 
>> The Alternative Investments division of UMB Fund Services provides a 
>> full range
>> of services to hedge funds, funds of funds and private equity 
>> funds.  Any tax
>> advice in this communication is not intended to be used, and cannot 
>> be used, by
>> a client or any other person or entity for the purpose of (a) 
>> avoiding penalties
>> that may be imposed on any taxpayer or (b) promoting, marketing, or
>> recommending to another party any matter addressed herein.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Minimalism in Graphics

2018-07-06 Thread Jody Bevan via 4D_Tech
What do you think and do?

I know that this ‘trend’ is started by the designers at Apple. When Apple 
starts a design trend then many thousands of developers follow it. To me, this 
trend is just like a fashion trend, rather than a functional trend. Yes I have 
read that the ‘reason’ is to let design take a back seat to content.

I agree that the interface should not be coloured up, and have moving objects, 
etc (like early web pages got when new HTML features came out). These are 
distractions. An interface should have a very consistent logical design to it, 
including the buttons, icons, and the colours chosen. This is the way we write 
our application and have these guidelines written out in our design standards. 
This design, and design guidelines come with our shell and shell documentation.

I was disappointed when I moved from 16R2 to 16R6 to see that 4D Inc had 
removed all the colour icons from their interface. As a user of an application 
appropriate colour helps me recognize an object quickly. A bit of splash of 
colour also enlivens the interface. 

Of course who am I, compared to the very successful Apple (in 1992 I would not 
have thought I would be saying that about Apple). They must know better than I, 
or do they.

Again - I think this is just a fashion and we will see it circle back to more 
colourful applications that are more ‘joyful’ to work with.

What do you think, and do in your development?

 


Jody Bevan
Developer

Argus Productions Inc. 
+1 587-487-6120

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: UUID version 4 needed

2018-07-06 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

The Win32API command sys_GetGUID does return a version 4 UUID

So on Windows :
Win32API generates a version 4 UUID --> 13th hex digit is a 4
4D v16 does not generate a version 4 UUID --> 15th hex digit is a 4


> -Oorspronkelijk bericht-
> Van: Dennis, Neil 
> Verzonden: vrijdag 6 juli 2018 16:25
> Aan: Piotr Chabot Stadhouders ; 4D iNug
> Technical <4d_tech@lists.4d.com>
> Onderwerp: RE: UUID version 4 needed
> 
> > And in fact, my 4D generated UUID is rejected by the web service, saying it
> isn't a 4 version UUID
> 
> Very possible, it has been a while since I looked into it and I was going off 
> of my
> fuzzy memory.
> 
> Neil
> 
> 
> 
> 
> --
> 
> 
> Privacy Disclaimer: This message contains confidential information and is
> intended only for the named addressee. If you are not the named addressee
> you should not disseminate, distribute or copy this email. Please delete this
> email from your system and notify the sender immediately by replying to this
> email.  If you are not the intended recipient you are notified that 
> disclosing,
> copying, distributing or taking any action in reliance on the contents of this
> information is strictly prohibited.
> 
> The Alternative Investments division of UMB Fund Services provides a full 
> range
> of services to hedge funds, funds of funds and private equity funds.  Any tax
> advice in this communication is not intended to be used, and cannot be used, 
> by
> a client or any other person or entity for the purpose of (a) avoiding 
> penalties
> that may be imposed on any taxpayer or (b) promoting, marketing, or
> recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Chip Scheide via 4D_Tech

On Fri, 6 Jul 2018 07:09:39 -0700, Kirk Brooks via 4D_Tech wrote:
> Thank you John, Wayne
WOW!
help from beyond!

:)
Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: UUID version 4 needed

2018-07-06 Thread Dennis, Neil via 4D_Tech
> And in fact, my 4D generated UUID is rejected by the web service, saying it 
> isn't a 4 version UUID

Very possible, it has been a while since I looked into it and I was going off 
of my fuzzy memory.

Neil




--


Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Kirk Brooks via 4D_Tech
​Miyako,
That is an excellent tip - thank you. ​

On Thu, Jul 5, 2018 at 6:09 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> 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 ($methodPath#Current method path)
> GET MACRO PARAMETER(Full method text;$methodCode)
> //do stuff
>
> SET MACRO PARAMETER(Full method text;$adjustedMethodCode)
> End if
>
> you want to exclude the macro method from accidentally editing itself.
>

-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Macro question - using project methods in a macro

2018-07-06 Thread Kirk Brooks via 4D_Tech
Thank you John, Wayne and Miyako. That's exactly what I'd forgotten about.

-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: UUID version 4 needed

2018-07-06 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Dennis,

There is something strange:
Indeed, when I look at the generated UUID in 4D the 15th hex digit is always 4
But, as far as I know the docs say : "set the four most significant bits of the 
7th byte to 0100'B, so the high nibble is 4"
This means that the 13th hex digit must be 4

And in fact, my 4D generated UUID is rejected by the web service, saying it 
isn't a 4 version UUID

Has this something to do with byte swapping or something? What should I do?
This has been tested with 4D v16R6 on a 64-bit Windows laptop

Gr,

Piotr

> -Oorspronkelijk bericht-
> Van: Dennis, Neil 
> Verzonden: donderdag 5 juli 2018 17:06
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> CC: Piotr Chabot Stadhouders 
> Onderwerp: RE: UUID version 4 needed
> 
> > 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
> https://en.wikipedia.org/wiki/Universally_unique_identifier
> 
> Neil
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Privacy Disclaimer: This message contains confidential information and is
> intended only for the named addressee. If you are not the named addressee
> you should not disseminate, distribute or copy this email. Please delete this
> email from your system and notify the sender immediately by replying to this
> email.  If you are not the intended recipient you are notified that 
> disclosing,
> copying, distributing or taking any action in reliance on the contents of this
> information is strictly prohibited.
> 
> The Alternative Investments division of UMB Fund Services provides a full 
> range
> of services to hedge funds, funds of funds and private equity funds.  Any tax
> advice in this communication is not intended to be used, and cannot be used, 
> by
> a client or any other person or entity for the purpose of (a) avoiding 
> penalties
> that may be imposed on any taxpayer or (b) promoting, marketing, or
> recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: What Happened to 4D v16 r6?

2018-07-06 Thread Pat Bensky via 4D_Tech
Where can we find the latest build of r6? I looked on the forum but
couldn't find any info.
Pat

On Fri, 6 Jul 2018 at 00:52, Timothy Penner via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> 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,
> 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  tpen...@4d.com>> 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 content.
>
> In the meantime, here is a direct link for v16R6:
> http://download.4d.com/Products/Current/4D_v16R6/Installers/
>
> -Tim
>
>
>
>
> Timothy Penner
> Senior Technical Services Engineer
>
> 4D Inc
> 95 S. Market Street, Suite #240
> San Jose,CA 95113
> United States
>
> Telephone: +1-408-557-4600
> Fax:   +1-408-271-5080
> Email: tpen...@4d.com
> Web:   www.4D.com
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**