Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

DeleteDiskObject

Delete a Workbench disk object from disk.

Declaration

Source position: icon.pas line 244

function DeleteDiskObject(

  const Name: PChar

):LongBool;

Arguments

Name

  

Name of the icon file without the ".info"

Function result

True if it worked, False if not, check IoErr() for details.

Description

This routine will try to delete a Workbench disk object from disk. The name parameter will have ".info" postpended to it, and the icon file of that name will be deleted. If the call fails, it will return False. The reason for the failure may be obtained via IoErr().

This call also updates the Workbench screen if needed.

Using this routine protects you from any future changes to the way icons are stored within the system.

See also

IoErr()

  

Return extra information from the system

PutDiskObject

  

Write out a DiskObject to disk.

GetDiskObject

  

Read in a Workbench disk object from disk.

FreeDiskObject

  

Free all memory in a Workbench disk object.

GetIconTagList

  

Retrieve an icon

PutIconTagList

  

Store an icon


Documentation generated on: 2021-07-30