what is split function?Give me the syntax?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
what is the TSL statement to find current systsem date?
What is Configuration Management?
can u tell da low severity & high priority in Banking projects with Examples
What is the purpose of regexp_msw_class property?
in which file Data of a Table is stored for further analysis
tell me about compiled module & function generator
If we send the bug report but the developer didnt understood the bug report then will the tester do?
Write test scripts on a scenario where you have to transfer data from one table to another.
You declared a constant in a main test..Later you want tried to reinitialize that constant..what will happened? i.e const i=10; -- --- i=20; what will happen?
My husband had stampped h1b visa and was valid for another 1year. problm is that he lost his pasport in travelling and we got new one in tatkal scheme. and so we applied for restamping and my dependent (h4)visa. As per immigration team petition will be the same only stamping has to b done.. what questions will they ask and what are the chances to get it aproved?? pl reply
How to do the "Exception Handling" in Winrunner ..... Give Me detail Practical approach....(Object Exception,TSL exception & Pop - up also).......?
How to recogonise dynamically changing objects in an application(ie Web or Standalone)