Re: Capturing Full Path Names with Picture Imports

2020-05-27 Thread Steven via 4D_Tech
Thank you all for your prompt, informative and kind responses.  

I figured it was something simple.  But not that simple.  Duh!?

First time I have encountered the Document system variable after decades of 
using 4D.  So my cognitive biases just skipped over that part of the 
documentation.  Very useful for my purposes.  Like stumbling on a 
(not-so-deeply) buried treasure actually.  I am already putting it to good use. 
 

Thanks again.

Steven

Steven Prins
Santa Fe, NM


> On May 27, 2020, at 1:00 PM, 4d_tech-requ...@lists.4d.com wrote:
> 
> Capturing Full Path Names with Picture Imports 

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
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: Capturing Full Path Names with Picture Imports

2020-05-27 Thread Ingo Wolf via 4D_Tech
Have a look at the process var named "Document".

HTH
Ingo Wolf

4d_tech-requ...@lists.4d.com schrieb am Tue, 26 May 2020 11:58:32 -0700:

>Good afternoon all.
>
>I hope everyone in the community is holding up under the challenges of the 
>pandemic.  My best wishes go out to everyone.
>
>I am trying to develop a small module to allow users to import images from 
>anywhere on the host computer, for now.  Using "READ PICTURE FILE","CREATE 
>THUMBNAIL” and "Get picture file name” I can accomplish most of what I want to 
>do.  But I am stuck on how to capture the long path to the picture selected by 
>the user in the selection dialog presented by "READ PICTURE FILE”.  
>
>I assume there must be a simple way to do this that I am overlooking.  Rather 
>than continuing to beat my head against the wall, I am hoping that someone 
>here might please point me in the right direction.  
>
>Thanks in advance.
>
>Steven Prins


-- 
ViELMAC Ingo Wolf
Rheinhessenring 53A
D 55597 Wöllstein
Tel. +49 (0)6703 3070320
Fax  +49 (0)6703 3070321
e-mail i...@vielmac.de
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
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: Capturing Full Path Names with Picture Imports

2020-05-27 Thread Chuck Miller via 4D_Tech
Yes that is true, Another way would be to select file you can even do multiple 
files at a time this way and the array returned form the command contains the 
full path to the documents selected. You can even decide what type of files are 
acceptable

Regards
Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On May 27, 2020, at 2:42 AM, Bernd Fröhlich via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Steven:
> 
>> I am trying to develop a small module to allow users to import images from 
>> anywhere on the host computer, for now.  Using "READ PICTURE FILE","CREATE 
>> THUMBNAIL” and "Get picture file name” I can accomplish most of what I want 
>> to do.  But I am stuck on how to capture the long path to the picture 
>> selected by the user in the selection dialog presented by "READ PICTURE 
>> FILE”.
> 
> Hi Steven,
> 
>  >
> 
> "If the command is executed successfully, the system variable Document 
> contains the full pathname to the open file"

**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
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: Capturing Full Path Names with Picture Imports

2020-05-26 Thread Bernd Fröhlich via 4D_Tech
Steven:

> I am trying to develop a small module to allow users to import images from 
> anywhere on the host computer, for now.  Using "READ PICTURE FILE","CREATE 
> THUMBNAIL” and "Get picture file name” I can accomplish most of what I want 
> to do.  But I am stuck on how to capture the long path to the picture 
> selected by the user in the selection dialog presented by "READ PICTURE FILE”.

Hi Steven,



"If the command is executed successfully, the system variable Document contains 
the full pathname to the open file"

Greetings from Germany,
Bernd Fröhlich
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
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: Capturing Full Path Names with Picture Imports

2020-05-26 Thread Vincent de Lachaux via 4D_Tech
Did you try the DOCUMENT system variable ?
It should be populate with the full pathname
**
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
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: Capturing Full Path Names with Picture Imports

2020-05-26 Thread Randy Kaempen via 4D_Tech
Steven,

> On May 26, 2020, at 1:58 PM, Steven via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> I hope everyone in the community is holding up under the challenges of the 
> pandemic.  My best wishes go out to everyone.
> 
> I am trying to develop a small module to allow users to import images from 
> anywhere on the host computer, for now.  Using "READ PICTURE FILE","CREATE 
> THUMBNAIL” and "Get picture file name” I can accomplish most of what I want 
> to do.  But I am stuck on how to capture the long path to the picture 
> selected by the user in the selection dialog presented by "READ PICTURE 
> FILE”.  
> 
> I assume there must be a simple way to do this that I am overlooking.  Rather 
> than continuing to beat my head against the wall, I am hoping that someone 
> here might please point me in the right direction.  

The documentation says:
If the command is executed successfully, the system variable Document contains 
the full pathname to the open file and the system variable OK is set to 1. 
Otherwise, OK is set to 0.

I would look at the Document variable.



Randy Kaempen
Intellex Corporation

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

Capturing Full Path Names with Picture Imports

2020-05-26 Thread Steven via 4D_Tech
Good afternoon all.

I hope everyone in the community is holding up under the challenges of the 
pandemic.  My best wishes go out to everyone.

I am trying to develop a small module to allow users to import images from 
anywhere on the host computer, for now.  Using "READ PICTURE FILE","CREATE 
THUMBNAIL” and "Get picture file name” I can accomplish most of what I want to 
do.  But I am stuck on how to capture the long path to the picture selected by 
the user in the selection dialog presented by "READ PICTURE FILE”.  

I assume there must be a simple way to do this that I am overlooking.  Rather 
than continuing to beat my head against the wall, I am hoping that someone here 
might please point me in the right direction.  

Thanks in advance.

Steven Prins
Santa Fe, NM

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