Sending checkbox items to text file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TwiLiteGXA
    New Member
    • Jun 2007
    • 3

    Sending checkbox items to text file

    I have a checkboxlist named cblLike and I need to know how I can get all the values of the checked item and send them to a text file. I currently have other controls on the form that are being sent to a text file, so all I need to know if how to get all the values of the checkboxlist that are checked and then how to send those in the array I already have so that it will save them in the text file along with all the other values being sent. Can anyone help?
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    Hello TwiLiteGXA,

    Here is a start for ya:

    Code:
    Dim MyArray(4) As String
    For x = 0 To CheckedListBox1.CheckedItems.Count - 1
         MyArray(x) = CStr(CheckedListBox1.CheckedItems(x))
    Next x
    Happy Coding,
    CroCrew~

    Comment

    Working...