Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_DataListDataList Base Class

Public Property Get ColName (
ColIndex As Integer,
Optional WithSquareBrackets As Boolean = False
) As String

Get the column name associated with the column index (if column metaData is being used)

ColIndex as Integer

The column index

Optional WithSquareBrackets as Boolean = False

Add square brackets to the column name (square brackets allow spaces and other non-allowed characters to be used in database column names)

Call Template:

Dim obj As New xf_DataList
Dim s As String
s = obj.ColName(ColIndex)
s = obj.ColName(ColIndex, WithSquareBrackets)

See Also:

Example 1:

Debug.Print lst.ColName(4)         -> CategoryName
Debug.Print lst.ColName(4, True)   -> [CategoryName]
lst.ColName(4) = "NewColName"
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd