| METHOD | OPENFILE |
| Description | Returns in Param1 the file handle of the file passed in Object using the options passed in Param2. |
| | |
| OBJECT | The long name/path of the file to open |
| PARAM1 | The file handle created by the open |
| PARAM2 | An array of options with which to open the file - to include an option set the appropriate field position to True$. | FM_SHARECOMPAT$ | Open file in dos compatibility mode | | FM_SHAREEXCLUSIVE$ | Open file in exclusive mode | | FM_SHAREDENYWRITE$ | Open file in allow read deny write mode | | FM_SHAREDENYREAD$ | Open file in deny read | | FM_SHAREDENYNONE$ | Open file in open mode |
|
| PARAM3 | n/a |
| PARAM4 | n/a |
| PARAM5 | n/a |
| ERRORTEXT | Any error message |