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


Please Help Members By Posting Answers For Below Questions

Compare java script and vb script?

856


What is the purpose of the err object in the vbscript language?

877


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?

2241


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

2057


How to access array data?

770


How will you get the octal value of the given number in vbscript?

750


Mention what is variant in vbscript?

748


can anyone tell me the procedure of interview held in applabs

1977


What is the purpose of on error resume next statement?

775


Explain the operator precedence in vb script?

868


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1587


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.

2037


How to add actions in driver script to run those actions in QTP?

1732


How will you get a string with the specified character the specified number of times in vbscript?

807


how does vb script help in web page designing? explain with example.

1780