Skip to content

Register_Resource

Obsolete

This command is obsolete. It is a legacy command intended for use in character-mode DataFlex.

This command does not work on embedded resources like bitmaps, icons, and version information that is compiled into a DataFlex application. See Resources for embedding these types of resources into your application.

See Also: Include_Resource

Purpose

To define the resource name and resource ID of a resource before its definition or inclusion.

Note

This command is a character-mode legacy command that handles embedding of files as resources. It does not work on embedded resources like bitmaps, icons, and version information that is compiled into a DataFlex application. See Resources for embedding these types of resources.

Syntax

Register_Resource {resourceName}

Argument Explanation

  • resourceName: The name by which to address the resource in the program.

What It Does

This command reserves a slot for a resource named resourceName and defines a resource ID symbol: resourceName.RSC. This allows the resource to be referenced in source code without causing a symbol-undefined error at compile time. Resources that are registered but never defined or included do not cause an error at compile time, but any attempt to access them during runtime will result in an error.