Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_DataListDataList Base Class

Public Function RowValsAsDelimList (
RowIndex As Long,
Optional QuoteChar As String = "",
Optional DelimStr As String = ","
) As String

Return the value from each row for a particular column of the datalist, as a delimited list

RowIndex as Long

The row index

Optional QuoteChar as String = ""

Quote (with escaping) every element of the string with this char

Optional DelimStr as String = ","

The delimiter to use

Call Template:

Dim obj As New xf_DataList
Dim s As String
s = obj.RowValsAsDelimList(RowIndex)
s = obj.RowValsAsDelimList(RowIndex, QuoteChar, DelimStr)

See Also:

Example 1:

1
2
3
4
5
Debug.Print lst.RowValsAsDelimList 2
-> 2,Chang,1,19
 
Debug.Print lst.RowValsAsDelimList 2, True, ";"
-> "2";"Chang";"1";"19"
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd