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 |
How to Recognise List Boxes and Combo boxes for Web Applications In WinRunner 7.5 please.....
what is the use of add-ins in winrunner?
In the Object properties MSW id,MSWclass will appear..what exactly MSW means..?
Where to use the public or private functions in your script?
What are the standards will you maintain at the timing of writing TSL script in WinRunner?
How do you copy and move objects between different gui map files?
please tell me how to explain the project by taking any project (like banking product), how to start explaing?what will be the order of priority e.g.,like purpose, modules, HLDs LLDs etc., in testing point of view (as a testengineer). rightnow i can't explain my project though i've done successfully..so plz help me ..
9 Answers HCL, IBM, ITC Infotech, Raisoni, TCS, Wipro,
What are the functions generate when u use GUI Check point?give me some of ones?
Explain the difference between gui map and gui map files?
What is checkpoints?
one text box is there .It will takeing some number, How will u know how many no's it will takeing by useing qtp
Which function to use to compare the application date with system date?