VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Take all of the items in a combo box and insert them all into a string.

by Jason Carter (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 27th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Take all of the items in a combo box and insert them all into a string.

API Declarations


Dim sValue As String: Dim x As Integer


Rate Take all of the items in a combo box and insert them all into a string.



Dim iItems() As String: Dim iCount As Integer
Dim sValue As String: Dim x As Integer

iCount = cbo.ListCount
ReDim iItems(iCount)

For x = LBound(iItems) To UBound(iItems) - 1
    sValue = sValue & cbo.List(x) & sDelimiter
Next
ComboToString = sValue
End Function

Download this snippet    Add to My Saved Code

Take all of the items in a combo box and insert them all into a string. Comments

No comments have been posted about Take all of the items in a combo box and insert them all into a string.. Why not be the first to post a comment about Take all of the items in a combo box and insert them all into a string..

Post your comment

Subject:
Message:
0/1000 characters