SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3

Thread: Error

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Error

    Hi experts
    Following code generated an error saying that the "ReportForm" object doesn't exist. But I would like to have it as a warning instead of error. Any suggestion?

    if(!Sys.WaitProcess("RF-VU", 0, false, 1).ReportForm.Exists)
    rptForm = null;

    Thanks

    km

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Error

    Hello,

    The error occurs because you are addressing the non-existing ReportForm child object of the "RF-VU" process. I suggest using the WaitChild method in this case:
    <font class="small">Code:</font><hr /><pre>
    if(!Sys.WaitProcess("RF-VU").WaitChild("ReportForm").Exists)
    Log.Warning("The 'ReportForm' object doesn't exist.");
    </pre><hr />
    Please refer to the "Waiting for an Object. Example" and "WaitChild Method" help topics for more information on the "WaitChild" method.
    Regards,
    Leo - AQA Support

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Error

    Thank you Leo. It works.

    Thanks again

    km

 

 

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 11.54%
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 11:17 AM.

Copyright BetaSoft Inc.