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 function key to toggle a breakpoint

1 Answers  


Do we need start up file in win runner??if yes then why?and no then why?

1 Answers  


how to reverse the string using function

1 Answers  


How do you modify the logical name or the physical description of the objects in gui map?

0 Answers  


What is T_Exit and T_return?

4 Answers   AZTEC,






what is the extension of default,custom check points ?

2 Answers   FCG,


This Is Sekar, Can Any One Of You Help Me? Question: How To Draw Charts In Excel Sheet Using Winrunner Scripts. Thanks, Sekar.

0 Answers   ABC, Excelacom,


How to force wr to learn the sub-items on a menu?

0 Answers  


In Analog mode of Recording in WinRunner,the maximum value of Y in (x,y) is ?

3 Answers   FCG,


what is Regression Testing and how you are going to use winrunner software to do this Regression testing?

5 Answers   MBT,


what is the use of _set_window in winrunner?

11 Answers   Wipro,


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  






Categories