Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / pankaja yathindrakumar
'Input = 124 output should be 124421 Please do not use any string functions/variables
str="124"
Set r=New RegExp
r.pattern="."
r.Global=True
Set c= r.Execute(str)
For each key in c
t=key&t
Next
Msgbox str&t
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Compare java script and vb script?
What is the purpose of the err object in the vbscript language?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
How to access array data?
How will you get the octal value of the given number in vbscript?
Mention what is variant in vbscript?
can anyone tell me the procedure of interview held in applabs
What is the purpose of on error resume next statement?
Explain the operator precedence in vb script?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
How to add actions in driver script to run those actions in QTP?
How will you get a string with the specified character the specified number of times in vbscript?
how does vb script help in web page designing? explain with example.