home *** CD-ROM | disk | FTP | other *** search
- ***************************************************************************
- * S H O W E X E C . S C R --- Show executing other scripts with args *
- ***************************************************************************
- * *
- * Script: ShowExec.Scr *
- * *
- * Purpose: Show how to execute other scripts with arguments. *
- * *
- * Invocation: *
- * *
- * Execute "ShowExec" *
- * *
- * Remarks: *
- * *
- * The scripts SHOWEXE1.SCR, SHOWEXE2.SCR, and SHOWEXE3.SCR must be *
- * present in order to be executed. *
- * *
- ***************************************************************************
- *
- Declare A String
- Declare B Integer
- Declare S String
- *
- Set A = 'Here is parameter A'
- Set B = 50
- *
- Set S = CONCAT( CONCAT( 'A:<' , A ), '>' )
- Message S
- *
- Set S = CONCAT( CONCAT( 'B:<' , STRING( B ) ), '>' )
- Message S
- *
- Message A
- Message "Executing script Showexe1 ..."
- *
- Execute 'showexe1' A B
- *
- Message "Back to main"
- Set S = CONCAT( CONCAT( 'New value of A is <', A ), '>' )
- Message S
- *
- Message "Executing script ShowExe2 ..."
- *
- Execute 'ShowExe2' B
- *
- Message "Back to main"
- Set S = CONCAT( 'New value of B is ', String( B ) )
- Message S
- *
- Message "Executing script ShowExe3 ..."
- *
- Execute 'ShowExe3' A
- *
- Message "Back to main"
- *
- * Try executes again, using some constants as arguments.
- *
- Message A
- Message "Executing script ShowExe1 ..."
- *
- Execute 'ShowExe1' 'Hi there folks!' 50
- *
- Message "Back to main"
- *
- Message "Executing script ShowExe2 ..."
- *
- Execute 'ShowExe2' 20
- *
- Message "Back to main"
- *
- Message "Executing script ShowExe3 ..."
- *
- Execute 'ShowExe3' 'Even more bogus.'
- *
- Message "Back to main"