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
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.
Illustrate briefly about the different types of statement
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
how to acces the remote mechine using vb cript(QTP)
How are arrays declared in the vbscript language?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Which date function is used in the vbscript language to find the difference between the 2 dates?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Mention what is byref and byval parameters in vbscript?
Mention what is select case statement?
How to delete a cookie using vbscript?
What are the environments supported by vbscript language?
How strcomp function works?
How to get the length of the string by making use of the string function?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?