what is split function?Give me the syntax?

Answers were Sorted based on User's Feedback



what is split function?Give me the syntax?..

Answer / guest

Split function will split the String expression accoring to
the split seperator that u mentioned..
For Ex: uname="suresh babu";
count=split(uname,arr1," ");
if u used that functin it will split the string into
two elements namely suresh and babu and store in the arr1
i.e arr1[]="suresh";
arr2[]="babu";
and count variable consists of number of elements in the
array.

Any further info..welcome..

Is This Answer Correct ?    4 Yes 1 No

what is split function?Give me the syntax?..

Answer / jagadesh

Split function is used to split the data

Ex:Change the date formate from DD/MM/YYYY to MM/DD/YYYY
using Split Function

Date = DD/MM/YYYY
Split(Date,arr,"/")
(Now the valuse are arr[0]= DD arr[1] = MM arr[2] = YYYY)

Date1 = arr[1]& "/" & arr [0] & "/" & arr[2]
(now Date1 = MM/DD/YYYY)

Is This Answer Correct ?    1 Yes 0 No

what is split function?Give me the syntax?..

Answer / udaykumar

The syntax is incorrect, it does not return any value,
means the no. of values in the array. It simply stores in
the array.
Example:
str="Hello uday how r u"
split(str,arr," ");
Here arr[0]="Hello",arr[1]="uday",arr[2]="how",arr[3]
="r",arr[4]="u"

Simply to say it divide like, whenever a space found in the
string
"Hello|uday|how|r|u"

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More WinRunner Interview Questions

1,You have scripts in Qtp8.2 and some scripts 9.0 ..how to handle ?

2 Answers   Ness Technologies,


Can anyone tell me the real usage of compiled modules and user defined functions stating real time example

1 Answers  


how many license keys are there for winrunner in your company?

3 Answers   MBT,


how to test online application

1 Answers  


During debugging how do you monitor the value of the variables?

1 Answers  


what is the procedure do u follow for writing the test scripts

1 Answers   Agile Software,


what are the stages of software development life cycle?

5 Answers   Agility e-Services, Trigent,


what are the differences you see in e-commerce and banking domain in testing point of view Thanks in Advance

0 Answers  


can anybody please send me important scripts in qtp

1 Answers  


How to to get the information from the status bar without doing any activity/click on the hyperlink?

0 Answers  


What is parameterizing in winrunner?

5 Answers   FCG, GE,


what is the use of generate script that is avaliable 3 places(file settings, tools, object identification)

0 Answers  


Categories