omron — RDFileN

Appendix: Built-in Scripting Language • 1 = Landscape Returned value No returned values. Note: The optNumOrientation parameter is not supported when running the project on a Windows Embedded target system. Examples Note: This function can be used to print the contents of text files only. Information in any other format (e.g., pictures, binary files, etc.) cannot be printed with this function. RDFileN Launches a File Browser window allowing you to select a file. Syntax RDFileN( " tagSelectedFile ", strSearchPath , strMask , optNumChangeDir ) tagSelectedFile Name of the string tag receiving the name and path of a selected file.

The tag name must be enclosed in quotes, or the project will try to get the contents of the tag. Moreover, it must be a valid tag name — it cannot be a VBScript variable name, for example. strSearchPath strMask The file path (directory) to search. The mask used to filter the files. optNumChangeDir Optional numeric tag that indicates whether the operator will be able to change the browsing directory. If this parameter is omitted or set TRUE ( 1 ), then the window opened by this function will allow the operator to navigate to different directories. If it is set FALSE ( 0 ), then the window will be restricted to the directory specified by strSearchPath .

Returned value Examples Page 536 InduSoft Web Studio Tag Name Expression Print("C:\ReadMe.txt") Print("C:\ReadMe.txt", 1) Print(TagFileName, 0) Function Group Execution Windows Embedded Thin Client RDFileN File Synchronous Supported Supported Supported 0 Success 1 One of the parameters is not a string 2 Parameter 1 contains an invalid tag name 3 The user canceled the operation Tag Name Expression Tag RDFileN( "FileName", "C:\Studio\", "*.doc", 1 )