Syntax:
output [file] "filePath"
Description:
Use this statement to specify a name for the application file that's created when you "Build" a project. If your program doesn't contain an output statement, then FutureBasic will use a default name (as set in your preferences) when you select "Build" (B from the "Command" Menu).
The filePath can be:
- A simple file name. The application file is saved in your project folder.
- A relative path name (starting with a colon). The path is relative to your project folder.
- A full path name. The application file is saved in the specified folder.
The output statement can appear anywhere in your program, but most commonly it appears somewhere near the beginning.
Note:
output is a non-executable statement, so you can't affect its operation by putting it inside conditional execution structures like long if...end if. You can, however, conditionally include or exclude it using compile long if.
See Also:
compile; resources