Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceSETEXITQQQuickWin Function: Sets a QuickWin application’s exit behavior. This function is only availableon Windows* systems.Module: USE IFQWINSyntaxresult = SETEXITQQ (exitmode)exitmode(Input) INTEGER(4). Determines the program exit behavior. The following exit parameters aredefined in IFQWIN.F90:• QWIN$EXITPROMPT – Displays the following message box:"Program exited with exit status X. Exit Window?"where X is the exit status from the program.If Yes is entered, the application closes the window and terminates. If No is entered, thedialog box disappears and you can manipulate the windows as usual. You must then close thewindow manually.• QWIN$EXITNOPERSIST – Terminates the application without displaying a message box.• QWIN$EXITPERSIST – Leaves the application open without displaying a message box.Results:The result type is INTEGER(4). The result is zero if successful; otherwise, a negative value.The default for both QuickWin and Standard Graphics applications is QWIN$EXITPROMPT.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETEXITQQ”, "Using QuickWin" in your user’s guideExample! Build as QuickWin ApUSE IFQWININTEGER(4) exmode, resultWRITE(*,'(1X,A,/)') 'Please enter the exit mode 1, 2 &or 3 'READ(*,*) exmodeSELECT CASE (exmode)CASE (1)result = SETEXITQQ(QWIN$EXITPROMPT)CASE (2)2-400

Descriptions of the Library Routines 2result = SETEXITQQ(QWIN$EXITNOPERSIST)CASE (3)result = SETEXITQQ(QWIN$EXITPERSIST)CASE DEFAULTWRITE(*,*) 'Invalid option - checking for badreturn'IF(SETEXITQQ( exmode ) .NE. -1) THENWRITE(*,*) 'Error not returned'ELSEWRITE(*,*) 'Error code returned'ENDIFEND SELECTEND&SETFILEACCESSQQPortability Function: Sets the file access mode for a specified file.Module: USE IFPORTSyntaxresult = SETFILEACCESSQQ (filename, access)filename(Input) Character*(*). Name of a file to set access for.access(Input) INTEGER(4). Constant that sets the access. Can be any combination of the followingflags, combined by an inclusive OR (such as IOR or OR):• FILE$ARCHIVE – Marked as having been copied to a backup device.• FILE$HIDDEN – Hidden. The file does not appear in the directory list that you can requestfrom the command console.• FILE$NORMAL – No special attributes (default).• FILE$READONLY – Write-protected. You can read the file, but you cannot make changes toit.• FILE$SYSTEM – Used by the operating system.The flags are defined in module IFPORT.F90.Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..2-401

Descriptions of the Library Routines 2result = SETEXITQQ(QWIN$EXITNOPERSIST)CASE (3)result = SETEXITQQ(QWIN$EXITPERSIST)CASE DEFAULTWRITE(*,*) 'Invalid option - checking for badreturn'IF(SETEXITQQ( exmode ) .NE. -1) THENWRITE(*,*) 'Error not returned'ELSEWRITE(*,*) 'Error code returned'ENDIFEND SELECTEND&SETFILEACCESSQQPortability Function: Sets the file access mode for a specified file.Module: USE IFPORTSyntaxresult = SETFILEACCESSQQ (filename, access)filename(Input) Character*(*). Name of a file to set access for.access(Input) INTEGER(4). Constant that sets the access. Can be any combination of the followingflags, combined by an inclusive OR (such as IOR or OR):• FILE$ARCHIVE – Marked as having been copied to a backup device.• FILE$HIDDEN – Hidden. The file does not appear in the directory list that you can requestfrom the command console.• FILE$NORMAL – No special attributes (default).• FILE$READONLY – Write-protected. You can read the file, but you cannot make changes toit.• FILE$SYSTEM – Used by the operating system.The flags are defined in module IFPORT.F90.Results:The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..2-401

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!