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

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?

478


What is byref and byval parameters in vbscript?

596


How will you get the last occurrence of one string within another string using vbscript?

674


How are values assigned to the variables in the vbscript language?

560


Which operator can be used to do an xor operation in vbscript?

672






How to Enter Values on the Command promt using VB script

1520


How will you convert a string to upper case string using vbscript?

544


Mention how to create a cookie using vbscript?

518


What is sql loader? Explain the files used by sql loader to load file?

608


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

1866


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1430


Write a Script for ATM in QTP

3325


Mention what is variant in vbscript?

547


What are the 2 ways in which a variable can be declared in the vbscript language?

553


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.

1401