Command group | Flag affected | Reversible | Execute on client | Platform(s) |
---|---|---|---|---|
External commands | YES | NO | NO | Windows,Linux |
Open file (path, refnum [,'r']) Returns err-code
Note: The flag is set according to whether Omnis was able to make a call to this external command.
It returns an error code (See Error Codes), or zero if no error occurs.
# Prompt the user for a file for opening
Do FileOps.$putfilename(lPathname,'Select a file','') Returns lReturnFlag
If lReturnFlag
Open file (lPathname,lRefNum)
End If