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 the hierachy of Descreptive programming?

3 Answers   Fiserv,


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

0 Answers  


Waht is diff between SystemUtil.Run and invokeapplication

5 Answers  


what is verification & validation?

2 Answers   Accenture,


how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks

2 Answers  






What is the limitation to XML Checkpoints?

4 Answers   CTS,


In the QTP the snap shots obtained during the recording time will appear in the active screen, if we have to use the snapshots from where we have to access. in which memory location of QTP they will be stored?

1 Answers  


Plz explain about MATCH/EXACT MATCH/IGNORE SPAGE in text check points?

1 Answers  


How does QTP identifies the object in the application?

1 Answers   Crea,


what is the difference between invoke application and system.util.run

24 Answers   HP, Syntel,


Problem with XML checkpoint in QTP ?

0 Answers  


QTP -object reposistory spy tool is not able to spy the pop up message appearing in the application, so how is that i can handle such run time pop ups in QTP by code???

2 Answers   CGI,


Categories