Returns an array containing a code and description that describes the result of executing a FILESYSTEM method. The following methods set the FILEOPRESULT property when they are executed:
• COPYDIR
• COPYFILES
• DELETEFILES
• GETLONGPATH
• GETSHORTPATH
• MAKEDIR
• MOVEDIR
• MOVEFILES
• REMOVEDIR
• RENAMEDIR
• RENAMEFILE
This property is an @fm-delimited array containing a numeric code and a text description of the result like so:
<1> Code
<2> Description
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get | No | N/A | No |
Equated constants for use with the FILEOPRESULT property can be found in the PS_FILESYSTEM_EQUATES insert record.
// Make a directory and check the error details if it fails $Insert PS_FileSystem_Equates If Exec_Method( "FILESYSTEM", "MAKEDIR", "c:\temp\newdir" ) Else ErrorInfo = Get_Property( "FILESYSTEM", "FILEOPRESULT" ) ErrorCode = ErrorInfo<PS_FOR_ERRORCODE$> ErrorText = ErrorInfo<PS_FOR_ERRORTEXT$> End
COPYDIR method, COPYFILES method, DELETEFILES method, GETLONGPATH method, GETSHORTPATH method, MAKEDIR method, MOVEDIR method, MOVEFILES method, REMOVEDIR method, RENAMEDIR method, RENAMEFILE method