How to get each item from a List of string
please help me with this...
suppose one list of string ="i am arnab" is there
how to seperate the each item form the list....
Re: How to get each item from a List of string
I think the article from Silk Test help below will help you:
Returns a segment (field) of a string.
sSegment = GetField (sString, sDelim, iField)
The returned segment. STRING.
The string to return a segment from. STRING.
The character(s) to use to separate fields in sString. STRING.
The field to return. INTEGER.
Use GetField to return segments of strings that have a known, consistent format (like part numbers or telephone numbers). GetField treats a string like a record; it uses the delimiter you specify to logically separate the string into fields. If the string has several segments that are separated by the same delimiter, use iField to get the part you want.
GetField returns an empty string ("") when the field is not found.
STRING sData = "name|rank|serial#"
Print (GetField (sData, "|", 1) ) // prints: name
Print (GetField (sData, "|", 3) ) // prints: serial#
Print (GetField (sData, "|", 4) ) // prints: