SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jun 2002
    Location
    UK
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Multi-level USEUNIT commands

    Is there a way to get a unit to 'USEUNIT' another unit and respect the USEUNIT calls within that second unit?

    eg
    UNIT_A uses UNIT_B

    UNIT_B uses UNIT_C

    I also want UNIT_A to use UNIT_C, but preferably without having to call 'useunit' for UNIT_C in UNIT_A.

    Any ideas?

    Thanks

    Chris

  2. #2
    Member
    Join Date
    Nov 2003
    Location
    Russia
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Multi-level USEUNIT commands

    Hello Chris,

    I don't understand your question at all, but I think that answer on it you can get in built-in help of TC under Calling Procedures Declared in Another Unit topic. There you can see all what I know about USEUNIT specifier.
    If you want to use any method of UNIT_C in UNIT_A without having to call USEUNIT, just use the Runner.CallMethod function.

    Regards,
    Alexander.

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Location
    UK
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Multi-level USEUNIT commands

    I don't think that I can do what I want to do.

    Thanks for your reply anyway!

    Chris

  4. #4
    Member
    Join Date
    Nov 2001
    Location
    Kiev, Ukraine
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Multi-level USEUNIT commands

    Originally posted by chrisgeorge:
    Is there a way to get a unit to 'USEUNIT' another unit and respect the USEUNIT calls within that second unit?
    <font size="2" face="Verdana, Arial, Helvetica">Hi Chris,

    As far as I know this is not possible.

    Regards,
    Alex
    [TeamAQA]
    ================================
    Regards,
    Alex
    [TeamAQA]
    ================================

  5. #5
    Senior Member
    Join Date
    May 2002
    Location
    Las Vegas, NV, USA
    Posts
    499
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Multi-level USEUNIT commands

    Hi Chris,

    UNIT_A uses UNIT_B

    UNIT_B uses UNIT_C

    I also want UNIT_A to use UNIT_C, but preferably without having to call 'useunit' for UNIT_C in UNIT_A.
    <font size="2" face="Verdana, Arial, Helvetica">Only JScript and C++Script languages have this ability.
    You can use the Runner.CallMethod method to call routines from other units. Here are the examples:

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[VBScript]

    Unit1:
    Sub Main
    Runner.CallMethod &quot;Unit2.PostMessageToLog&quot;, &quot;Message from Main&quot;
    End Sub

    Unit2:
    Sub PostMessageToLog(Msg)
    Log.Message Msg
    End Sub


    [DelphiScript]

    Unit1:
    procedure Main();
    begin
    Runner.CallMethod('Unit3.PostMessageToLog', 'Message from Main');
    end;

    Unit2:
    procedure PostMessageToLog(Msg);
    begin
    Log.Message(Msg);
    end;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">I hope this helps.
    Regards,
    Bobby Edgar
    Olagoo.com
    Save on AutomatedQA Products

 

 

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 10.00%
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 03:53 AM.

Copyright BetaSoft Inc.