Close File
Closes a FileMaker Pro file or disconnects from an ODBC data source.
Options
- Current File closes the file that runs the script step.
- Add FileMaker Data Source specifies a FileMaker Pro file to disconnect from.
- Add ODBC Data Source specifies an ODBC data source to disconnect from.
- Manage Data Sources allows you to modify or remove external data sources you have added. See Editing FileMaker data sources and Editing ODBC data sources.
Compatibility
Product | Supported |
FileMaker Pro | Yes |
FileMaker Go | Yes |
FileMaker WebDirect | No |
FileMaker Server | No |
FileMaker Cloud | No |
FileMaker Data API | No |
Custom Web Publishing | No |
Originated in version
6.0 or earlier
Description
If you do not specify a file, FileMaker Pro stops the currently running script and closes the FileMaker file that the script is running from.
This script step disconnects the specified ODBC data source. This lets you "re-login" to the specified ODBC data source with a different user name and password, without closing the FileMaker file.
Notes
- If a user moves the specified file, FileMaker Pro might not be able to close the file.
- Close File can't close external data sources that are referenced in the relationships graph.
Example 1
Opens the Invoices database and performs a script, then closes the current database.
Copy
Open File [Open hidden: Off ; "Invoices"]
Perform Script [Specified: From list ; "Sort Records" from file: "Invoices" ; Parameter: ]
Close File [Current File]