SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Jul 2003
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to call a script from another script

    Hello all,
    I'm wondering if it's possible to call a script from another script.
    Does anyone know how to do it?

    Thanks

  2. #2
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    Look in the WR help under "Call staements." The functions that you want are call and call_close.

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Location
    Greensboro
    Posts
    544
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    call_close "TestName" () - use path if not in search path.

  4. #4
    Junior Member
    Join Date
    Dec 2002
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    will either call() or call_close() allow the calling script to be completed after a script is called.
    Matt

  5. #5
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    call() will return to the calling script when the called script ends. (Assuming it does so with return, not texit).

  6. #6
    Junior Member
    Join Date
    Jul 2003
    Location
    Hyderabad
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    Hello all,
    Its possible to call a script from another script.ok .
    Suppose i have two scripts T1 and T2. I have called T2 from T1 and i want to pass on the values of T1 script as Parameters to some function in T2 script.How is that possible..Does anyone know how to do it?
    ............
    Lanka

  7. #7
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    The help for "call" shows how to use parameters.

  8. #8
    Junior Member
    Join Date
    Jul 2003
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    To Lanka.
    1. call T2 (value1,value2);
    2. A parameter is a variable that is assigned a value from outside the test in which it is defined.
    3. T1 - calling test;
    T2 - called test;
    4. The parameter defined in the called test - known as formal parameter;
    5.Example: you have a test T1 where you find age=21 and name= Sam.
    In second test T2 you have to specify in the test properties two formal parameters age1 or x and name1 or y.
    So, test T1 sends values 21 and Sam for T2.Specify x as first parameter and y as second parameter.
    # test T1
    call T2 (21,"Sam");

    # test T2 with two formal params
    print (x,y);
    Try it.

  9. #9
    Member
    Join Date
    Jul 2001
    Location
    India
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    You can simply call the test using
    'call "c:\\test1" ();' if the path of your second script is fixed. I think you cannot pass a variable for the path of second script, you can get this done with 'eval'.

  10. #10
    Member
    Join Date
    May 2001
    Location
    Singapore
    Posts
    70
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to call a script from another script

    Hi, you can pass variable to the called script as koshlu mentioned....
    -> Sundar <-

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.33%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:48 PM.

Copyright BetaSoft Inc.