omron — FDELETE program instruction

FDELETE program instruction FDELETE program instruction Syntax FDELETE (logical_unit) object Function Delete the specified disk file, the specified graphics window and all its child windows, or the specified graphics icon. Usage Considerations The logical unit number must be attached, but no file or window can be currently open on that logical unit. The window cannot be deleted if it (or any of its child windows) is open as any other logical unit or by any other program task. Parameters logical_unit Real value, variable, or expression (interpreted as an integer) that corresponds to a disk or window logical unit.

(See the ATTACH instruction for a description of logical unit numbers.) object String constant, variable, or expression specifying the disk file, graphics window, or graphics icon to delete. The error *Nonexistent file* will be reported (via IOSTAT) if the specified object does not exist. For disk files, the string may contain an optional disk unit and an optional directory path, and must contain a file name, a period (.), and a file extension. The current default disk unit and directory path are considered as appropriate (see the DEFAULT command). For graphics windows, the string must fully specify the position in the window tree of the window to be deleted.

For graphics icons, the string must specify the name of the icon, followed by /ICON. Details If a disk logical unit number is specified, the object parameter is interpreted as the specification of a disk file to be deleted. If the deletion fails for any reason (for example, the file does not exist or the disk is protected), an error will be returned via the IOSTAT real- valued function. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 231