1
Visual Basic / [solusi]error 52 bad file or number
« pada: Februari 18, 2014, 10:21:30 AM »
Ane punya project av tapi error pas debug [ run -time error 52 bad file or number]
Tolong bantunya
Code yang error:
Public function cekvirus ( filepath as string ) as string
Cekvirus = ""
For i = 1 to ubound (Virusdb)
If getchecksum(filepath) = split(virusdb(i),"|")(1)
Cekvirus = virusdb(i)
Exit function
End if
Next
IF FILELEN(FILEPATH) /2056 <= 1024 THEN 'kode yang error
Cekvirus =cekheuristic (filepath)
End if
End function
Tolong bantunya
Code yang error:
Public function cekvirus ( filepath as string ) as string
Cekvirus = ""
For i = 1 to ubound (Virusdb)
If getchecksum(filepath) = split(virusdb(i),"|")(1)
Cekvirus = virusdb(i)
Exit function
End if
Next
IF FILELEN(FILEPATH) /2056 <= 1024 THEN 'kode yang error
Cekvirus =cekheuristic (filepath)
End if
End function