$path has the file name and $aSelectedPath{1} contains the full path selected, 
but what I am referring to is using an access path number in the directory 
parameter so that when the user does something that opens a Select document or 
Select folder dialogue again, the last directory they selected is remembered 
and the dialogue opens to the remembered directory.

Select document is designed for selecting documents, but the developers had the 
foresight to optionally use it like the Select folder function with a file 
name. The only way to provide a suggested file name is to include it in the 
directory path in the directory path, which is where you would put an access 
path number if you wanted a selected path remembered for future use. So you 
cannot do both. If the suggested file name were a separate parameter, then you 
could do both.

John

        



> On Dec 29, 2017, at 12:27 PM, Keisuke Miyako via 4D_Tech 
> <[email protected]> wrote:
> 
> 
>> I wish that the command isolated the file name in another parameter so that 
>> I could use a memorized access path number in the directory parameter. Guess 
>> I can’t have it all.
>> 
>> $path:=Select document(System folder(Documents folder)+$path;"";"Report 
>> name:";File name entry;$aSelectedPath)
> 
> $path, the return value, contains the file name if that's what you're looking 
> for.
> 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

John Baughman
Kailua, Hawaii
(808) 262-0328
[email protected]





**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to