omron — FDELETE program instruction

FDELETE program instruction NOTE: In order to delete a file from a 3.5 inch diskette, the write-protect slider must be in the position that covers the hole. If the logical unit number specified is for a graphics window, the object parameter is interpreted as the specification of a graphics window or icon to be deleted. When a window is specified, that window and all of its child windows are deleted. If any of the window's children cannot be deleted, the specified window is not affected and an error is returned (via the IOSTAT real-valued function). When a window is deleted, it is erased from the display.

(A window must be FCLOSEd before it can be FDELETEd.) When a graphics logical unit is accessed, a *Protection error* message is reported (via IOSTAT) if a system window or icon is specified. Examples Delete the disk file defined by the file specification in the string variable $file: FDELETE (5) $file Delete the top-level window named TEST and all of its child windows. The logical unit defined by main must be a graphics logical unit: FDELETE (main) "TEST" Delete the graphics window named ERROR, which is a child of the top-level window named VISION: FDELETE (21) "VISION\ERROR" Delete the graphics icon named BUTTON:

FDELETE (20) "BUTTON/ICON" Related Keywords ATTACH program instruction FCLOSE program instruction FDELETE program instruction FOPEN program instruction IOSTAT real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 232