[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: FrameScript question: one script to run other scripts



Hello Ananda,

The preferred method is to call another subroutine in a different 
source file, but you can get around this by using the name $Main. 
This is the default name of the main part of the script. For example,

   SET fileStr = 'C:'+BKSL+'Scripts'+BKSL+'Script1.fsl';
   SET subname = '$Main';

   RUN fileStr.subname;

This will run the script C:\Scripts\Script1.fsl.

Therefore, if you want to run several scripts from one script, you 
can do something like the following:

    SET pathStr = 'C:' + BKSL + 'Scripts' + BKSL;
    // directory path for scripts

    SET SubName = '$Main';

    SET Scrp = pathStr + 'Scr1.fsl';
    RUN Scrp.SubName;

    SET Scrp = pathStr + 'Scr2.fsl';
    RUN Scrp.SubName;

    SET Scrp = pathStr + 'Scr3.fsl';
    RUN Scrp.SubName;


Frank Elmore
Project leader for FrameScript


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **