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

Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


How should i find out whether the cursor is moving horizantally. when tabbing continuously

2 Answers   Livetek,


what is framework? which frame work u follow for writting script?

5 Answers   IBM,


Using Regular expression method some particular value is not present in given value. HOow do use regular expression? Forexample password all number,character ,special character are accepted but (_',)underscore,comma are not used. How do write regular expression.

1 Answers  


Shall we add Local Repository to shared object repository,if yes,how we add

5 Answers  


Synchronization methods?

8 Answers   Ordain Solutions,


What is the Difference between Environment variable and Globle variable,.. anybody can give me answer..Thanks in advance...

4 Answers   IBM,


what could go wrong with test automation?

1 Answers  


Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance

1 Answers   Mphasis,


how can we retrieve ten rows from the data table using loop concept?

3 Answers  


.how will you load the object during runtime

2 Answers   TCS,


Categories