GetLocalFile
Structure
GetLocalFile(sFileName,sTempname,bWait,iTimeOut)
Parameters
| Parameter | Type | Description
| sFileName | String | the name of the network file that should be copied to the IndySoft temp directory. This file name should include the full network directory pathsTempName | String | the file name that should be used when the file is copied to the IndySoft temp directory. This file name should NOT include the directory path, only the file name plus extensionbWait | Boolean | Boolean (True/False), determines if IndySoft should pause operations and wait for the requested file.iTimeOut | Integer | Integer, the # of seconds InSte should wait on the requested file. Only valid if bWait = True |
Return Value
Char
'1' = True, '0' = False
Description
Functions in the 'Local File Read/Write Functions' group are used typically to create and read xml (or other) files from a common network directory to sync IndySoft's data/functionality with another system, like an accounting system. This function temporarily pauses IndySoft functionality and waits for a file in a network directory. Or, if bWait = False, then IndySoft does not wait for the file to be 'dropped', but immediately returns true/false based on the presence of the file. If a wait occurs, a dialog is shown onscreen (below), with an animation.
If the file is not found before the iTimeOut # of seconds elapses, the dialog is closed and the function returns a '0' (False). If the file is located, then it is copied to the IndySoft temp directory (appropriate to the current IndySoft login), and the function returns a '1' (True). Copying the file to this directory allows further custom script to interact with the file without it having to remain in the common network directory.
Example
No example provided
Application Compatibility
IndySoft Calibration Management, IndySoft Commercial Lab Management, IndySoft Tool Management
Also See
No related topics |