Results 1 to 4 of 4

Thread: listbox question again

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    6
    Hi again,

    I have another problem with my listbox. I go through all the checkboxes to see if they are checked and that works fine. But now i want to get the text out of the row that im currently on. Somehow i only get the text in the last row for all the checked rows. Thats a bit strange because i know they have different descriptiontexts. Can someone help me with this?

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    post yer code and we'll have a giggle er, I mean have a look at it!
    Mark
    -------------------

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    6
    For m_iListCount = 0 To m_iTotalCount
    m_sProdMoment = lstProductmoment.Text
    Debug.Print m_sProdMoment
    If lstProductmoment.Selected(m_iListCount) = True Then
    m_sXmlProdNod.addNode ("ProduktMoment" & m_iPrdmomCount)
    m_sXmlProdNod.nodeValue("ProduktMoment" & m_iPrdmomCount) = m_sProdMoment
    Debug.Print oXmlDocument.xml '=8=
    m_iPrdmomCount = m_iPrdmomCount + 1
    End If
    Next m_iListCount
    m_iListCount = 0

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Should not be that hard to get the text of an item:

    Code:
    For m_iListCount = 0 To m_iTotalCount 
        m_sProdMoment = lstProductmoment.Text 
        Debug.Print m_sProdMoment 
        If lstProductmoment.Selected(m_iListCount) = True Then 
            m_sXmlProdNod.addNode ("ProduktMoment" & m_iPrdmomCount) 
            m_sXmlProdNod.nodeValue("ProduktMoment" & m_iPrdmomCount) = m_sProdMoment 
            Debug.Print oXmlDocument.xml '=8= 
            Debug.Print lstProductmoment.List(m_iListCount)
            m_iPrdmomCount = m_iPrdmomCount + 1 
        End If 
    Next m_iListCount 
    m_iListCount = 0
    that's what you need?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width