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
How can the spaces from the string be removed?
What is the main difference between function and sub-procedure?
What is vbscript procedures?
Explain about filter expression?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
Explain about vb script?
What is the purpose of regexp object in vbscript?
How many types of procedures are available in the vbscript language?
How do you declare a variable in vbscript?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
what is the features of visual basic?
Explain about the asc function?
In what way program "hello world" you can write in vbscript?
how to set one column as primary key in QTP and fetch values accordingly