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

Syntact for how to call one script from another? and Syntax to call one "Action" in another?

1 Answers  


How to analyzing the checpoint results?

0 Answers  


What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project

2 Answers   Yahoo,


Where we use data driver in qtp?

0 Answers  


what is Compile Module in QTP? what exactly it contains Functions or Actions?

1 Answers  






if our qtp vb Script may be Currepted then What we want do?

0 Answers   IBM,


Can anyone explain me about child objects in detail;when they are used and why do we need them ? please give me sample code for this if possible.

1 Answers   Virtusa,


how to test use the quality control .how to verify the image verification

0 Answers   Wells Fargo,


How do we connect QC by using QTP?

2 Answers   Infosys,


Give some brief idea about a) Active x check b) Alt property check c) Applet object check d) Frame object check e) Multimedia links check f) Server side image check g) Table object check

1 Answers   CTS,


How to load the object repository at run time?

9 Answers   TCS,


How to capture screenshots of Exceptions/Errors during run- time?

12 Answers   Ordain Solutions,


Categories