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
Explain vbscript in detail?
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Write a code to print numbers from 5 to 0?
Mention when to use function procedures and what are its characteristics?
How to Convert Hex color code to color name in VB Script?
How will you reverse a string in vbscript?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
What are the 2 ways to pass a value to the function?
What are the special sub-types in vbscript?
where can i learn VB scripint ?
What is dictionary object in vbscript? Explain?
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
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 the use of the formatdatetime function in the vbscript language?