SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Apprentice
    Join Date
    May 2004
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Disable Error logging in Result

    Hi *,

    i'm testing a RegExMatch in the flight application to find a specific flight.
    Actually i'm using this code:
    <font class="small">Code:</font><hr /><pre> For zeile=0 to (Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetItemsCount)-1
    Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select zeile

    If Window("Flight Reservation").Dialog("Flights Table").WinList("From").CheckItemProperty(zeile, "text", micRegExpMatch(f_num&amp;".*")) = True Then
    Window("Flight Reservation").Dialog("Flights Table").WinList("From").Activate zeile
    Exit for
    Else
    Err.Clear
    End If
    Next
    </pre><hr />

    For every enty in the Fligt Table/List i'll get an error entry in the result file.
    Can i disable this behavior? I want to write a message by my one wheater the flight no was found or not.

    Yours

    Roland

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Disable Error logging in Result

    Use GetItemProperty instead and then check for pattern matching using RegExp object

  3. #3
    Apprentice
    Join Date
    May 2004
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Disable Error logging in Result

    Hi Tarun,

    i'll check this tomorrow.
    But do you know a war to prevent such event's/errors from beeing written into the result? Like switching off logging, do the check, und turn it on again?

    Your's

    Roland

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Disable Error logging in Result

    Reporter.Filter = rfDisableAll

    and then you can enable it again


    Reporter.Filter = rfEnableAll

  5. #5
    Apprentice
    Join Date
    May 2004
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Disable Error logging in Result

    Hi Tarun,

    Reporter.Filter is exactly the function i was looking for.

    Thanks

    Roland

 

 

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 12.50%
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 06:41 AM.

Copyright BetaSoft Inc.