Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain the functionality of vbscript?

881


i need to sort the data using qtp script for this how i need to write a qtp script

3614


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1836


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)

3612


There are 5 web pages.write a script to click the button on 4th web page.

3356


Which operator can be used to change the value of the operand or change the state of the condition?

964


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.?

2433


Explain about the functionality of vb script?

922


What is the scope of a constant declared using public?

916


How to add actions in driver script to run those actions in QTP?

1892


How to declare an array in vbscript?

1205


How can constants be declared in the vbscript language?

943


Differentiate javascript and vbscript?

973


Mention what is the use of option explicit in vbscript?

917


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

1226