[Overview][Resource strings][Constants][Types][Classes][Index] | Reference for unit 'resource' (#fcl-res)

# TAbstractResource.ChangeDescValueAllowed

Reports whether changing the value of resource type or name is allowed

## Declaration

Source position: resource.pp line 156

`protected function TAbstractResource.ChangeDescValueAllowed(`
`aDesc: TResourceDesc`
`):Boolean; virtual; abstract;`

## Arguments

`aDesc` |  | The TResourceDesc whose value should be changed

## Function result

True if the resource allows the given TResourceDesc to change value

## Description

Descendant classes must implement this method to declare if the resource allows changing the value of one of its resource description (type or name).

Example:

A certain resource class allows its name only to be changed: e.g. a TBitmapResource doesn't want its type to be anything else than RT_BITMAP. It then allows changing the value of the description only if the description is the resource name:

    Result:=aDesc=fName;

## See also

TAbstractResource.ChangDescTypeAllowed

Documentation generated on: May 14 2021