guides:programming:programmers_reference_manual:fileopresult_property_filesystem

FILEOPRESULT property (Filesystem)

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

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetNoN/ANo

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

  • guides/programming/programmers_reference_manual/fileopresult_property_filesystem.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1