FutureBasic Logo

<<    Index    >> FutureBasic

output   statement



Syntax
output [file] "bundleBinaryName"

Description
Use output to specify a name for the application file that's created when you build or run a project. If your program doesn't contain an output statement, then FutureBasic will use the file or project name.

The bundleBinaryName is specified in one of three formats: An output statement may be placed (ONCE) anywhere in your program, but most commonly it appears somewhere near the beginning.

Examples
(1) CFString literal
output @"MyGreatApp"

(2) CFString macro
#define MY_APP_NAME @"MyGreatApp"
// ...
output MY_APP_NAME

(3) pascal string literal
output "MyGreatApp"

(4) pascal string constant
_myAppName$ = "MyGreatApp"
// ...
output _myAppName$

Note
output is a non-executable statement, so you can't affect its operation by putting it inside a conditional execution structure such as if...end if. You can, however, conditionally include or exclude it using #if...#end if.

See also
compile; resources