Skip to main content

TcxSchedulerStorageResources.GetResourceName(TcxSchedulerStorageResourceItem) Method

Returns the display name of the specified resource.

Declaration

function GetResourceName(AResource: TcxSchedulerStorageResourceItem): string;

Parameters

Name Type
AResource TcxSchedulerStorageResourceItem

Returns

Type
string

Remarks

Call this function to obtain the descriptive name of a resource passed as the AResource parameter. The GetResourceName function returns an empty string if nil is passed as instead of a valid resource instance. The event persistence manager calls this function internally to provide resource display names for the associated Scheduler control.

To obtain the resource’s name by the specified unique identifier, call the GetResourceNameByID function.

Note

Calling the GetResourceName or GetResourceNameByID function raises the OnGetResourceName event.

See Also