was just a sample , no valid code, Sorry !!! [Frown]

try:
code:
;function start 
if $ListView.FocusedItem.SubItems(0).text ;selection has a value in first cell -> collect data

;code here

endif
;function end

_________________________