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 purpose of regexp_label property and regexp_msw_class property?

0 Answers  


what is the TSL statement to find current systsem date?

2 Answers  


How do you handle pop-up exceptions?

0 Answers  


what is TSL script to connect testdirector through winrunner

2 Answers  


How to recover the Parameter out of range error while running the script in verify mode

1 Answers  






What is a checkpoint and what are different types of checkpoints?

0 Answers  


how to test online application

1 Answers  


What in contained in the GUI map?

0 Answers  


What are the two modes of recording?

0 Answers  


How do you execute your tests from windows run command?

0 Answers  


Dear all i am new to testing my company using vb.net and we are developing web based application. How i can test those application with winrunner if any one have some good tutorial or link kindly provide thanks u.

0 Answers  


Tell me the function to export the content from one data table to the other?

1 Answers   Landscape Technologies,


Categories