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

What is the difference between bitmap checkpoint and image checkpoint?

1 Answers   Ness Technologies,


Some of the importent functions in data driven test(ddt)?

4 Answers   Second Foundation,


What happens when the gui map file get loaded?

0 Answers  


how to create checklist in winrunner?

1 Answers  


what is the use of Step into option provided in WR?

2 Answers  






how scripting language & programming language are different?

1 Answers   EDS,


How do you analyze results and report the defects?

1 Answers  


How do you find out which is the start up file in winrunner?

0 Answers  


soft key for virtual object wizard ?

0 Answers   Logica CMG,


what is the purpose of verify,update and debug modes in wr?

3 Answers   Accenture,


Data Driven test functions in WinRunner are Context sensitive functions or Analog functions?

3 Answers   FCG,


ON PROPERTIES IT IS DECIDED WHICH TOOLS TO BE USED AMONG QTP, WINRUNNER, RATIONAL ROBOT, TEST DIRECTOR?

1 Answers  


Categories