What does SPLIT and JOIN commands do in Vbscript?
Answers were Sorted based on User's Feedback
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 |
Answer / vj
I disagree with LEO.
SPLIT function is an inbuilt function of QTP.
| Is This Answer Correct ? | 16 Yes | 1 No |
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 |
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 |
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 |
please any one can explain the keyword driven framework. with gmail example.
Can any one explain about environment variables with examples?
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
what does it mean when a check point is in red color? what do u do?
Explain about Test Fusion Report of QTP?
what is file database
Does quicktest professional is unicode compatible?
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
Can we Test Welcome Screens and Process Images with QTP
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
if full in Object Repostoiory then how to load other Object Repository
How to integrate the qualitycenter with qtp