OpenWHFSObject (open)

Returns a WHFS file or folder object from the id of the object. Returns DEFAULT OBJECT for id 0, use OpenWHFSRootObject to open the root folder object.

Syntax

LOADLIB "mod::system/lib/whfs.whlib";

OBJECT FUNCTION OpenWHFSObject(INTEGER findid, RECORD options)

Parameters

INTEGER findid

Id of the object

RECORD options

Options

expectstate

Expected object state ('live' will not open objects in the recyclebin)

Return value

OBJECT
Possible objecttypes:

WHFS file or folder object (DEFAULT OBJECT if the object does not exist)