setDocumentPath ( )

Function stats

Average user rating
299
339
9999
Support
FileMaker 7.0 +
Date posted
20 October 2012
Version
1
Recursive function
No

Author Info
 Diego D'Alessio (solfilemaker)

5 functions

Average Rating None

author_avatar



 

Function overview

Prototype

setDocumentPath  ( filename;   extension )


Parameters

filename  


extension  


Description

Tags:  Export   documents  

Gets de documents path for Mac and PC.
Useful for exporting excel , txt, etc.

Examples

Sample input

setDocumentPath("filename";"xlsx")


Sample output

filewin:\path\filename.xlsx or filemac:/path/filename.xlsx

 

Function code

Let(

OS=Abs(Get(SystemPlatform));

Case (OS=1;"filemac:";OS=2;"filewin:";
)
&Get(DocumentsPath)&filename
&Case(
not IsEmpty(extension);"."&extension)

)

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/339

    Prototype: setDocumentPath( filename; extension )
    Function Author: Diego D'Alessio (solfilemaker) (http://www.fmfunctions.com/mid/299)
    Last updated: 20 October 2012
    Version: 1

*/
// ===================================

 

 

 

 

 

 

 

Top Tags

Text Parsing  (33)
List  (32)
Date  (28)
XML  (27)
Format  (23)
Sql  (22)
Dev  (20)
Debug  (17)
Interface  (15)
Layout  (15)
Text  (14)
Variables  (13)
Filter  (12)
Layout Objects  (11)
Design  (10)
Array  (8)