From Xojo Documentation

Revision as of 14:37, 4 March 2010 by SteffX (talk) (SMBot: new page by automated transformation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Integer )
aFolderItem.LastErrorCode = newIntegerValue
IntegerValue = aFolderItem.LastErrorCode

Supported for all project types and targets.

Contains the error code for the last supported operation on the FolderItem. LastErrorCode will be set for any error.

The following error codes may be returned:

100: Destination does not exist. You will get this error only on CopyFileTo and MoveFileTo.

101: File not found.

102: Access denied

103: Out of memory

104: File in use

105: Invalid name

You can test whether an error occurred by comparing the value in LastErrorCode to one of the Error Constants. See the section "FolderItem Error Constants", in the Notes section.

LastErrorCode may also return operating system-specific error codes if the error does not map to one of the above errors.