SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Y2KRulesInherited error message

    Anyone know how the following error message is generated and how to suppress it?

    *** Error: Member Y2KRulesInherited is not defined in window Run.Open for Microsoft Windows XP

    I get this error when doing a SetText() in the Run dialog.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Y2KRulesInherited error message

    Have you tried unchecking the Y2K box in Options/Runtime ?


    John


    ------------------

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Y2KRulesInherited error message

    It was never checked. I shut SilkTest down and restarted and seems to be OK now. I did a search on this error message in this forum and someone else had the same problem and was fixed with the same resolution.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Y2KRulesInherited error message

    Yup -- I used to get this when SilkTest (5.0.3) became unstable while running.
    Restarting helped temporarily.
    Later, I retraced my edits and found it was associated with an odd piece of 4Test code.

    I think it had something to do with inheriting methods from a "virtual" parent object that had no "tag" defined. Defining a placeholder tag fixed it.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  5. #5
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Y2KRulesInherited error message

    Hi Rob,

    I am facing the same problem currently and restarting silktest has no effect. I do have a virtual parent object and this error creeped in only when I converted my code class-based.

    Could you let me know whether you defined the placeholder tag for the object of the parent class or the derived class?

    This would help me a lot.

    Thanks and Regards,
    Harshil

  6. #6
    Senior Member
    Join Date
    Aug 2003
    Location
    NY
    Posts
    708
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Y2KRulesInherited error message

    Hi,

    I tried giving tags to every object that was either from the virtual parent or from the derived child class, but it did not solve the problem.

    Why is there a call to ApplyY2KRules, when I have turned it off (not that it makes any difference if I turn it on)?

    I looked at the code in winclass.inc where TypeKeys and SetText are defined.

    The following lines (in winclass.inc) gave the problem:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> [-] if (fUseParent)
    [-] do
    [ ] MyRules = this.@(&quot;Y2KRulesInherited&quot
    [ ] except</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Here, although the assignment statement has been wrapped in a do-except, it logged that error. (did not raise or print)

    I was able to use a workaround solution, which is as follows:

    I defined all classes that have a call to SetText or TypeKeys again and inherited them from their base classes.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">winclass TextField:TextField
    setting Y2KRules = &quot;&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The above piece of line solves the problem. But is only a workaround. I am still not sure about the actual reason the error occurs.

    Thanks and Regards,
    Harshil

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 02:37 PM.

Copyright BetaSoft Inc.