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
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What is byref and byval parameters in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
How are values assigned to the variables in the vbscript language?
Which operator can be used to do an xor operation in vbscript?
How to Enter Values on the Command promt using VB script
How will you convert a string to upper case string using vbscript?
Mention how to create a cookie using vbscript?
What is sql loader? Explain the files used by sql loader to load file?
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Write a Script for ATM in QTP
Mention what is variant in vbscript?
What are the 2 ways in which a variable can be declared in the vbscript language?
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.