What does SPLIT and JOIN commands do in Vbscript?

Answers were Sorted based on User's Feedback



What does SPLIT and JOIN commands do in Vbscript?..

Answer / chaitu

Split function is builtin function in QTP

it helps us to divide the string at desired place in a
string

for Ex:-

a = "C:/programmfiles/chaitufolder/chaitanya.doc"

here i want to change the file name of .doc then we can use
x = Split(a,"/") then we will get like this

split function

msgbox x(0) 'it shows this C:
msgbox x(1) 'it shows this programmfiles
msgbox x(2) 'it shows thischaitufolder
msgbox x(3) 'it shows this chaitanya.doc

Is This Answer Correct ?    22 Yes 2 No

What does SPLIT and JOIN commands do in Vbscript?..

Answer / vj

I disagree with LEO.

SPLIT function is an inbuilt function of QTP.

Is This Answer Correct ?    16 Yes 1 No

What does SPLIT and JOIN commands do in Vbscript?..

Answer / bhavna khurana

Even I disagree with leo, SPLIT function is an inbuilt
function of QTP. But the normal Split function can't help
you in this case.

Use Instr to find the position of next sequence. e.g.
current="AA"; next="BB"

nextIndex=Instr(0, inputString, next, 1)

Is This Answer Correct ?    4 Yes 1 No

What does SPLIT and JOIN commands do in Vbscript?..

Answer / mike

It works just fine as quoted above (once you remark out the editorial comments). Whether its native to QTP or part and parcel of VB is irrelevant. The scripter doesn't necessarily care if the command is native to VB, QTP, or both as long as it works. And it works. Kudos to Chaitu for a quick and easy solve.

Is This Answer Correct ?    3 Yes 0 No

What does SPLIT and JOIN commands do in Vbscript?..

Answer / veena

i agree with leo

Is This Answer Correct ?    2 Yes 9 No

What does SPLIT and JOIN commands do in Vbscript?..

Answer / leo

Split function is a vb script function not built into
qtp..if you dont know the answer dont mislead othere....

Is This Answer Correct ?    12 Yes 20 No

Post New Answer

More QTP Interview Questions

Please can you give where can we get good QTP Training at Hi-Tech city Hyderabad?

10 Answers  


is it possible to operate(on/off)the capslock using qtp

2 Answers  


I have java based application on my computer. Can I install QTP on it? What are system requirements for installing QTP?

3 Answers  


What is test object model in quicktest professional?

0 Answers  


I want to test advanced Java applications what kind of add- ins I have to install?

1 Answers  


how to test background color and dynamic images during runtime

4 Answers   Accenture, Oracle,


Discuss quicktest professional environment?

0 Answers  


What is quicktest professional window?

0 Answers  


your coming from electrical backgroung..but y ur coming to software side?

0 Answers   Accenture,


What is file database?

0 Answers   Syntel,


How can you give wait up to 10 seconds in qtp?

0 Answers  


What is the significance of “action 0” in qtp?

0 Answers  


Categories