Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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";
and count variable consists of number of elements in the

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

(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.
str="Hello uday how r u"
split(str,arr," ");
Here arr[0]="Hello",arr[1]="uday",arr[2]="how",arr[3]

Simply to say it divide like, whenever a space found in the

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More WinRunner Interview Questions

How can withwin runner to make single scripts which supports multiple languages?

0 Answers  

how scripting language & programming language are different?

1 Answers   EDS,

Can we run WinRunner scripts on the backend?

4 Answers  

What is contained in the test scripts?

0 Answers  

What is the extension of gui map file?

0 Answers  

How will u find Automation Test cases and how to find regression test cases?

4 Answers   TCS,

WinRunner will suppost "Cold Fusion"?

1 Answers  

i was given test cases which are in quality center and i need to automate them using winrunner . the application is a power builder , client server and based on windows. so how should i go about automating my test cases ( winrunner and quality centre are the tools used)

1 Answers  

what is the use of add-ins in winrunner?

3 Answers   MBT,

The GUI MAp Editor or Rapid Fire test are not learning the GUI of any window or any object..The pointer conevrts to hand and everthing hangs till i don't press Ctrl+Alt+Del. Help me!!!

1 Answers  

regular expression differance in qtp and winrunner

1 Answers  

How to calculate the edit field length

2 Answers   Wipro,