Re: V17R5 Folder

2019-07-28 Thread Jeremy Roussak via 4D_Tech
Thanks, Arnaud. I must learn to read the documentation a little more carefully!

Jeremy

> On 28 Jul 2019, at 12:04, Arnaud init5 imap via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 
> 
>> Le 28 juil. 2019 à 12:07, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> 
>> a écrit :
>> 
>> In a component, can Folder(fk resources folder) be used to make a reference 
>> to the host's resources folder, not the component's resources folder? 
> 
> It seems the unavoidable * is here as usual: 
> 
> "If the command is called from a component, pass the optional * parameter to 
> get the path of the host database. Otherwise, if you omit the * parameter, an 
> empty string is always returned."
> 
> -- 
> Arnaud de Montard 
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
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: V17R5 Folder

2019-07-28 Thread Arnaud init5 imap via 4D_Tech


> Le 28 juil. 2019 à 12:07, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> In a component, can Folder(fk resources folder) be used to make a reference 
> to the host's resources folder, not the component's resources folder? 

It seems the unavoidable * is here as usual: 

"If the command is called from a component, pass the optional * parameter to 
get the path of the host database. Otherwise, if you omit the * parameter, an 
empty string is always returned."

-- 
Arnaud de Montard 




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

V17R5 Folder

2019-07-28 Thread Jeremy Roussak via 4D_Tech
In a component, can Folder(fk resources folder) be used to make a reference to 
the host's resources folder, not the component's resources folder? 

The analogy is with Get 4d folder(Current resources folder;*).

There’s an obvious workaround using Folder(Get 4d folder…), but it seems a 
shame to have to mix the two.

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