SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    71
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Problem in replacing string by another string.

    Hi Folks,

    I am facing a problem in LR scripts.
    Problem details:
    I have a very long string, I want to replace some parts of it by other substrings .

    Ex.
    @@ by @1000@

    Please let me know if any function available in LR. Though I am able to do this but my approach its going to be very lengthy.

    Looking forward to your responces.
    Regards,
    Bharat J.

  2. #2
    Moderator
    Join Date
    Aug 2001
    Location
    NC
    Posts
    6,018
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Problem in replacing string by another string.

    'C' issue, not a LoadRunner one.
    Yes, it can be done.

    See sprintf();
    James Pulley

    Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.

    Put us to the test, skilled expertise is less expensive than you might imagine.

    Twitter: @LoadRunnerBTH @PerfBytes

  3. #3
    Member
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    71
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem in replacing string by another string.

    I tried using sprintf() but I think this function is used for formatting a string.

    I want to replace a part of a string by another.
    Please let me know which function to use.
    I want to replace "; n b s p" by " " (blank space).
    Regards,
    Bharat J.

  4. #4
    Member
    Join Date
    Mar 2005
    Location
    Mumbai
    Posts
    71
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem in replacing string by another string.

    I tried using sprintf() but I think this function is used for formatting a string.

    I want to replace a part of a string by another.
    Please let me know which function to use.
    I want to replace "; n b s p" by " " (blank space).
    Regards,
    Bharat J.

 

 

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 04:20 PM.

Copyright BetaSoft Inc.