SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help on Clipboard.

    I'm trying to copy text into the clipboard and then, I want to verify that the text is correct.

    It copies the text to the clipboard fine, but when I check to determine if it is correct, I get "*** Error: Type mismatch".

    I have used both lines below and they still give me the error message.

    - Verify (Clipboard.GetText (), "Text Goes Here")

    - if (Clipboard.GetText () != "Text Goes Here")
    LogError ("Text Incorrect")

    What am I doing wrong?

    ------------------
    Who Tests The Tester...
    Who Tests The Tester...

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    93
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Need help on Clipboard.

    If you look in the Library browser you will see that the type returned from the GetText method for the clipboard is a list of string. You are trying to compare the returned list with a string. Put your comparison string in {} as below:

    Verify (Clipboard.GetText (), {"Text Goes Here"})

    Regards,

    Paul

    ------------------
    Paul Tucker
    Merit AT
    www.merit-at.com

 

 

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 05:37 PM.

Copyright BetaSoft Inc.