HerbAndEdnaWeinstein
Technical User
hi, i've got a fmMultiSelectMulti listbox called LayerTo. I'm trying to use this code to return a list of all selected items in it.
when i declare LayerTo as fmMultiSelectSingle, the debugging text returns without a problem. when i declare it as fmMultiSelectMulti, however, no debugging text returns.
any ideas?
thanks in advance,
rs
Public Sub LayerTo_Click()
Isubset = -1
For Iprimary = 0 To (pMap.LayerCount - 1)
'initialize 'selection set (everything is -1)
LStatus5(Iprimary) = -1
Next Iprimary
For Iprimary = 0 To (pMap.LayerCount - 1)
If LStatus2(Iprimary) > -1 Then
If LayerTo.Selected(LStatus2(Iprimary)) Then
'if part of applicable set
Isubset = Isubset + 1
LStatus5(Iprimary) = Isubset
Debug.Print ("layerto: " & LStatus1(Iprimary) & " , " & LStatus2(Iprimary) & " , " & LStatus3(Iprimary) & " , " & LStatus5(Iprimary))
End If
End If
Next Iprimary
End Sub
when i declare LayerTo as fmMultiSelectSingle, the debugging text returns without a problem. when i declare it as fmMultiSelectMulti, however, no debugging text returns.
any ideas?
thanks in advance,
rs
Public Sub LayerTo_Click()
Isubset = -1
For Iprimary = 0 To (pMap.LayerCount - 1)
'initialize 'selection set (everything is -1)
LStatus5(Iprimary) = -1
Next Iprimary
For Iprimary = 0 To (pMap.LayerCount - 1)
If LStatus2(Iprimary) > -1 Then
If LayerTo.Selected(LStatus2(Iprimary)) Then
'if part of applicable set
Isubset = Isubset + 1
LStatus5(Iprimary) = Isubset
Debug.Print ("layerto: " & LStatus1(Iprimary) & " , " & LStatus2(Iprimary) & " , " & LStatus3(Iprimary) & " , " & LStatus5(Iprimary))
End If
End If
Next Iprimary
End Sub