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



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

Answer / 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

More VB Script Interview Questions

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

0 Answers  


write a vb script to generate fibonnaci numbers

1 Answers  


how to genarate a random numbers in vb?

2 Answers  


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

0 Answers  


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

0 Answers   Estuate,






. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,


Explain the .wsf files?

0 Answers  


write a vb-script code to delete all the mails in my gmail in the year 2011

1 Answers  


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

0 Answers  


give me any information abou vb script books learn quckly

0 Answers  


How can you have different number of cells for each row of a table in HTML?

2 Answers  


reverse the string without using reverse string?

2 Answers   CSS Corp,


Categories