Skip to content

Total_Resources Global Variable

Obsolete

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

This variable 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: Related Documentation

Purpose

The number of resources in the current resource library.

Type

Integer

What It Does

Resources are binary or ASCII data embedded in DataFlex compiled files for use by programs. Each such resource is created either by a pseudo-image in the source code of the compiled program or by an include_resource command. The resource library of every DataFlex program is, by default, itself, although it can be changed to any other named compiled file.

if (total_resources) 
    showln "We have resources."

Values should never be moved to total_resources.

Notes

  • In a resource library, resources are numbered sequentially from 1. Therefore, the value of total_resources is always equal to the ID of the highest-numbered resource.