Document Reference to Path
Anyone have an idea on how to get a file path starting with a document reference? ex: $Doc_Ref:=Open Document("") $Doc_ref1:=Open Document("") any ideas on getting the path to the file referenced by $Doc_Ref? 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: Document Reference to Path
I believe that the “Document” process variable will have the full path as long as the OK var is set to 1. You will need to get the contents of the variable after the 1st Open Document. Dani > On Mar 22, 2018, at 1:15 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Anyone have an idea on how to get a file path starting with a document > reference? > > ex: > $Doc_Ref:=Open Document("") > $Doc_ref1:=Open Document("") > > any ideas on getting the path to the file referenced by $Doc_Ref? > > 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 > ** ** 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: Document Reference to Path
As was stated here is code array text($paths_atxt;0) $Doc_Ref:=Open Document(“") append to array ($paths_atxt;Document) $Doc_Ref1:=Open Document(“") append to array ($paths_atxt;Document) You can of course use variables but usiong an array allows for unlimited paths Regards Chuck On Thu, Mar 22, 2018 at 3:15 PM, Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Anyone have an idea on how to get a file path starting with a document > reference? > > ex: > $Doc_Ref:=Open Document("") > $Doc_ref1:=Open Document("") > > any ideas on getting the path to the file referenced by $Doc_Ref? > > 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 > ** -- - Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 Informed Solutions, Inc. Brookline, MA 02446 USA Registered 4D Developer Providers of 4D, Sybase & SQL Server 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. ** 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: Document Reference to Path
thanks - I was really just trying to avoid passing yet another parameter to a method On Thu, 22 Mar 2018 16:29:28 -0400, Charles Miller via 4D_Tech wrote: > As was stated here is code > array text($paths_atxt;0) > > $Doc_Ref:=Open Document(“") > > append to array ($paths_atxt;Document) > > $Doc_Ref1:=Open Document(“") > > append to array ($paths_atxt;Document) > > You can of course use variables but usiong an array allows for unlimited > paths > > > Regards > > > Chuck > > > On Thu, Mar 22, 2018 at 3:15 PM, Chip Scheide via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > >> Anyone have an idea on how to get a file path starting with a document >> reference? >> >> ex: >> $Doc_Ref:=Open Document("") >> $Doc_ref1:=Open Document("") >> >> any ideas on getting the path to the file referenced by $Doc_Ref? >> >> 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 >> ** > > > > > -- > - > Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 > Informed Solutions, Inc. > Brookline, MA 02446 USA Registered 4D Developer >Providers of 4D, Sybase & SQL Server 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. > ** > 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 **