用for怎样读取ListView中所有项目?
就是for i=0 to  这儿不会怎样写
        这儿也不会。
     
    next i

解决方案 »

  1.   

    For j = 0 To Me.List2.ListCount - 1
            Print Me.List2.List(j)     
        Next j
      

  2.   

    For j = 0 To ListView4.ListCount - 1
            Print ListView4.List(j)
        Next j
    不对。我是再按钮触发事件中,
    For j = 0 To ListView4.ListCount - 1
            Print ListView4.List(j)
        Next j
    目的是读取listview4空间中所有的项目。
      

  3.   

    For j = 1 To ListView1.ListCount
            Print ListView1.ListItems(j).Text  '第一列
            Print ListView1.ListItems(j).SubItems(1) '第二列
            Print ListView1.ListItems(j).SubItems(2) '第三列
     Next j结帐吧
      

  4.   

    For j = 1 To ListView1.ListCount
            Print ListView1.ListItems(j).Text  '第一列
            Print ListView1.ListItems(j).SubItems(1) '第二列
            Print ListView1.ListItems(j).SubItems(2) '第三列
     Next j
      

  5.   

    楼上的,都不行呀
    For j = 1 To ListView1.ListCount
     Next j没有这个方法ListView1.ListCount都通不过。仅仅控循环都通不过
      

  6.   

    晕.........
    For I = 1 To ListView1.ListItems.Count
    ..................
    next I