Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_DataListDataList Base Class

Public Sub PrintVals (
Optional WithTypes As Boolean = False,
Optional RowLimit As Long = -1,
Optional HumanReadable As Boolean = False
)

Displays the DataList to the Debug Window.

Optional WithTypes as Boolean = False

Display the type of each column along with the data

Optional RowLimit as Long = -1

Limit the display to this many rows

Optional HumanReadable as Boolean = False

Omits row and column index information and prints the list in a more human-readable form.

Call Template:

Dim obj As New xf_DataList
obj.PrintVals
obj.PrintVals WithTypes, RowLimit, HumanReadable

See Also:

Example 1:

Dim lst As New xf_DataList
lst.AddSQLResultsetDbConn xf.DbConnect, "SELECT * FROM Shippers"
lst.PrintVals

Printing  3  Rows: ( 3  Columns)
/1:ShipperID /2:CompanyName      /3:Phone
/1:ShipperID /2:CompanyName      /3:Phone

i:1   /1:1         /2:Speedy Express   /3:(503) 555-9831
i:2   /1:2         /2:United Package   /3:(503) 555-3199
i:3   /1:3         /2:Federal Shipping /3:(503) 555-9931

lst.PrintVals True

Printing  3  Rows: ( 3  Columns)
/1:ShipperID /2:CompanyName               /3:Phone
/1:ShipperID /2:CompanyName               /3:Phone

i:1   /1:1  [Long] /2:Speedy Express   [String] /3:(503) 555-9831 [String]
i:2   /1:2  [Long] /2:United Package   [String] /3:(503) 555-3199 [String]
i:3   /1:3  [Long] /2:Federal Shipping [String] /3:(503) 555-9931 [String]

lst.PrintVals , , True

ShipperID CompanyName      Phone

1         Speedy Express   (503) 555-9831
2         United Package   (503) 555-3199
3         Federal Shipping (503) 555-9931
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd