When using the MoveFile function in vb6,
what error code does the function get
if the function fails because the same file already exists in the path you want to navigate?
I don’t know if there is an error code that occurs in a specific situation in order to try to handle an exception in a situation other than when you run the MoveFile function.
Is it possible that the error code that occurs when using the movefile function will have a different return value depending on the development platform?
if MoveINIFile(SrcPath, TargetPath) <> True Then
Spread.SetText(“Error”)
else
Spread.SetText(“Upload”)
end if
Using the MoveFile API function, a success message is displayed when the operation is successfully completed, and an error message is displayed when it fails.