Procedures produce |
Top Previous Next |
|
With the help of the program function "DefineProcedure" user-defined procedures get themselves under Moskito for the command line. The application of procedures very makes sense when at certain works a more or less long series must be applied by orders over and over again in the same combination. A selfprovided procedure begins with the order "DefineProcedure" and the name which the procedure should receive, in the Kommandoeingabezeile. The Moskito's commands follow in the order in which they should be also called later. Finally ""the concerning procedure is finished with input of the order "EndProcedure". From now on with successful ending of the procedure this can be called by an easy input of the procedure name in the command line as long as, under the same name another order result is defined. Arbitrarily many can be given to the ready procedures by the call, variable parametres. Such parametres which stand by the procedure call as a text string behind the name of the procedure are valid within the procedure as variables arg1, arg2, arg3, etc. and are called in the procedure as a Value (arg1), Value (arg2), Value (arg3), etc. Besides, the figure brags at which place behind the procedure name the parametre stands. Within the procedure definition can be made by a special variable use, the variable ReturnValue. This must be declared like all variables with the order Declare. The specific feature: By the later call of the procedure this variable defines the value zurückzugebenen from the procedure. Procedures are also often applied in menus, dialogue fields and in Batchdateien, in particular when a longer order result should be integrated into another order.
|