Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Public Function ListboxSelectionsToDelimList (
objListbox As ListBox,
Optional ValueColumnIndex As Integer = -1,
Optional QuoteValues As xf_QuoteTypeEnum = None,
Optional Delimiter As String = ","
) As String

Return the values from the selected rows of the listbox as a delimited string. The default used is the bound column value, but the column index can be specified if a different value is desired.

delimiter

The delimiter to use

objListbox as ListBox

The list box

Optional ValueColumnIndex as Integer = -1

The column index to take the values from, defaults to the bound column

Optional QuoteValues as xf_QuoteTypeEnum = None

The quote type: None, SingleQuote, DoubleQuote

Optional Delimiter as String = ","

(no description)

Call Template:

Dim s As String
s = xf.Controls.ListboxSelectionsToDelimList(delimiter, objListbox)
s = xf.Controls.ListboxSelectionsToDelimList(delimiter, objListbox, ValueColumnIndex, QuoteValues, Delimiter)

See Also:

Example 1:

ListboxSelectionsToDelimList (lstSample, , SingleQuote)   => '1','5','10'
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd