motti100 said:Hi
Do you have an answer for both alternatives?
Public Sub UpdateSize()
Dim itemX As ListViewItem
Dim stringNewSize As String
For Each itemX In ListView1
stringNewSize = getNewSize(itemX.Text)
itemX.SubItems(1) = stringNewSize
Next
itemX = Nothing
End Sub
Private Function getNewSize(ByVal FileName As String) As String
'Put your code here to determine the size of the file
'and don't forget to Return the new size as a string!
End Function