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

I have string like hp company.print tis like company hp.write a program in vbscripting

Answer Posted / jp mumbai

Hi,

We can write a code in 2 ways. one is Generic Code and another is Hard Code.

In Generic Code:

Str="hp company"
ArrayStr=Split(Str)

For i = uBound(ArrayStr) to 0 Step-1
expStr=expStr &" "& ArrayStr(i)
Next

msgbox expStr

-------------------------------------------------

In Hard Code:

Str="hp company"
ArrayStr=Split(Str)

expStr= ArrayStr(1)&" "&ArrayStr(0)

msgbox expStr

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of a constant declared using public?

1032


How can you fetch the value of a cookie?

1066


How will you get a subset of a array in vbscript?

1058


Which object provide information about a single runtime error in a vbscript?

1115


Which operator is used to concatenate the 2 values in the vbscript language?

1051


How should i Create Email invite with server-side Coding?

2193


what is diff between static and dynaic arrys?

2216


When does ‘on click of button’ event gets triggered in the vbscript language?

1074


Explain the arrays in vb script?

1105


What are the uses of vb script?

1094


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1432


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

1912


What is the use of the instr function?

1104


How many types of procedures are available in the vbscript language?

1049


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

1166