ajtsystems
IS-IT--Management
I wonder if anyone can help? I have this function
Set objFile3 = objFSO.GetFile(results)
Set objFile4 = objFSO.GetFile(resultsCopy)
if objFile4.Size = objFile3.Size then
osame = false
else
osame = true
end if
retvalue = ShowFileSum(FileSize1, FileSize2)
MsgBox "The function returned: " & retValue
'call function, if file has changed then same is 0
showFileSum 0, osame
Function ShowFileSum(FileSize1, FileSize2)
Dim sum
' Determine and display the sum.
sum = FileSize1 + FileSize2
' Set the function's return value.
ShowFileSum = sum
End Function
No matter what size the files which I compare are the function always seems to return 0. When I echo same it does show a value of 1. Something in the function maybe?
Set objFile3 = objFSO.GetFile(results)
Set objFile4 = objFSO.GetFile(resultsCopy)
if objFile4.Size = objFile3.Size then
osame = false
else
osame = true
end if
retvalue = ShowFileSum(FileSize1, FileSize2)
MsgBox "The function returned: " & retValue
'call function, if file has changed then same is 0
showFileSum 0, osame
Function ShowFileSum(FileSize1, FileSize2)
Dim sum
' Determine and display the sum.
sum = FileSize1 + FileSize2
' Set the function's return value.
ShowFileSum = sum
End Function
No matter what size the files which I compare are the function always seems to return 0. When I echo same it does show a value of 1. Something in the function maybe?