start
start ( program file name, parameters )
Starts a separate B4P application script as a sub program and waits until the sub program has ended.
When using start function from command line, then encapsulate this function in braces in order to avoid confusion with the interactive start command.
Min. 1
No. | Type | Description |
---|---|---|
1 input |
string | Program Name Name of B4P program to start. Do not forget to specify the suffix, e.g. '.b4p' or '.txt'. |
Opt. 2, etc. input |
all types | Additional parameters Any additional optional parameter. If specified, then they will replace the existing "command line parameters" by the ones supplied here. |
Type | Description |
---|---|
all types | returned value Value returned by called program |
Program file not found
start( "start.txt", 123, abc, true, date(24.12.2015),{});
// The parameters will be passed in their given typs to 'command line arguments.
// command line argument[0]: start.txt (The file name of the program)
// command line argument[1]: 123 (numeral)
// command line argument[2]: abc (string)
// command line argument[3]: true (boolean)
// command line argument[4]: 2015-12-24 (date)
// command line argument[5]: {} (empty set)
//
// How to start this program in interactive mode:
{ start( "start.txt", 123, abc, true, date(24.12.2015),{}); }