output [file] "filePath"
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).
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.
output statement can appear anywhere in your program, but most commonly it appears somewhere near the beginning.
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.