SPONSORS:






User Tag List

Results 1 to 5 of 5

Thread: print {

  1. #1
    Vit
    Vit is offline
    Junior Member
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    print {


    Hi all,

    Is it possible using print ()function print out
    string with { ?

    sample : jkhkj{hgh{.

    thanks

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

  2. #2
    Junior Member
    Join Date
    Jan 2003
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: print {

    Yes. use Chr(123) for the { and Chr(125) for the }.

    to print your sample, the code would look like this:

    print("jkhkj{Chr(123)}hgh{Chr(123)}.")

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

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

    Re: print {

    Or just "escape" that character by placing another double-quote in front of it.

    John


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

  4. #4
    Junior Member
    Join Date
    Jan 2003
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: print {

    John,

    Having worked on Topaz/LoadRunner for the past year and a half, I completely forgot the double quote was the escape for 4test. I kept trying a backslash.

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

  5. #5
    Vit
    Vit is offline
    Junior Member
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: print {

    thanks

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

 

 

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:23 PM.

Copyright BetaSoft Inc.