What does SPLIT and JOIN commands do in Vbscript?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute a winrunner script in quicktest professional?

556


Generic function to search for the unique link in webtable and click on it

2489


what is supply chain management?

2091


Difference between action & Reusable action?

689


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

573






I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2352


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2456


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

585


how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)

1435


Did QTP prove efficient for your project? Yes or No, explain?

6119


Have you used xml check point in your project? How?

550


What is the extension of the recovery scenario file in qtp?

547


Explain the check points in quicktest professional (qtp)?

560


How to use checkpoints in qtp ?

588


How to find array size in qtp?

585