Hi, i have a string like "INDIA". I need to display this
string vertically in Msgbox?

Answers were Sorted based on User's Feedback



Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?..

Answer / lakshmi

Dim Str,I,J,Temp
Str="INDIA"
For i=1 to Len(Str)
J=Mid(Str,i,1)
Temp=Temp&J&VbCrlf
Next
Msgbox Temp


Please let me know if u any other answer which is simplest
than this.

Is This Answer Correct ?    10 Yes 2 No

Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?..

Answer / mandar

Dim Str,I,J,Temp
Str="INDIA"
For i=1 to Len(Str)
J=Mid(Str,i,1)
Temp=Temp&J&Vbnewline
Next
Msgbox Temp

Is This Answer Correct ?    2 Yes 0 No

Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?..

Answer / dinesh1433

str="INDIA"

For i=0 to len(str)

x=Mid(str,i,1)
Print x&VBCRLF

next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

WHAT IS A TEST STRATEGY & WHAT IS THE DIFFERENCE BETWEEN TEST STRATEGY & TEST PLAN?

21 Answers   ABM, AZTEC, CTS, Infosys, Nihilent, Orange,


how do u copy object repository?

1 Answers  


How do you use the parameters.input parameters and out put parameters.

1 Answers   Polaris,


How many add-ins comes by default with qtp?

0 Answers  


Given a string variable contain a full name (last name, first name), using vbscripting, how can you extract first and last name and save them into two different variables.

2 Answers   Banking,






what are the environment variables,how do you use them. give an example.

3 Answers   Polaris,


What are the most frequent errors you faced while executing your scripts?

1 Answers  


normally by going through the object properties in object spy we write descriptive programming(correct me if i am wrong). But how or from where can we get the object properties in the object spy?plzzzzzz do answer

2 Answers  


Which recording modes need more memory?

0 Answers  


How we test web based application by using QTP

0 Answers  


Which scripting language used by quicktest professional (qtp)?

0 Answers  


in my application,validation message has in japanise language.how to validate this message is appears properly or not

0 Answers  


Categories