Syntax
| Item$(text$,first,last [,delimiters$])
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Returns all the items between first and last within the specified formatted text list.
| ||||||||||
See Also
| |||||||||||
Example
| Sub Main
‘This example creates two delimited lists and
‘extracts a range from each, then displays the
‘result in a dialog box.
ilist$ = “1,2,3,4,5,6,7,8,9,10,11,12,13,14,15”
slist$ = “1/2/3/4/5/6/7/8/9/10/11/12/13/14/15”
list1$ = Item$(ilist$,5,12)
list2$ = Item$(slist$,2,9,”/”)
MsgBox “The returned lists are: “ & vbCrLf & _
list1$ & vbCrLf & list2$
End Sub
|