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

A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1723


Illustrate briefly about the different types of statement

2237


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

2472


how to acces the remote mechine using vb cript(QTP)

1781


How are arrays declared in the vbscript language?

760


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3514


Which date function is used in the vbscript language to find the difference between the 2 dates?

807


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

783


Mention what is byref and byval parameters in vbscript?

776


Mention what is select case statement?

735


How to delete a cookie using vbscript?

800


What are the environments supported by vbscript language?

699


How strcomp function works?

844


How to get the length of the string by making use of the string function?

820


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2814