[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'LResources' (#lcl)

# Reference for unit 'LResources'

This unit maintains and stores all lazarus resources in the global list named LazarusResources and provides methods and types to stream components

`uses`
`Classes,`
`sysutils,`
`Types,`
`RtlConsts,`
`FileUtil,` |  | Miscellaneous procedures and functions for manipulating files and filenames
`FPCAdds,` |  |
`typinfo,`
`DynQueue,` |  |
`LCLType,` |  | This unit is being created specifically for compatibility with Delphi. It should only be used for constants and type definitions that are included in the Delphi Windows unit. This is only done for compatibiltiy.
`LCLProc,` |  | Useful lower level helper functions and classes
`LCLStrConsts,` |  | This unit contains all resource strings of the LCL
`LazConfigStorage;` |  |

## Overview

This unit maintains and stores all lazarus resources in the global list named LazarusResources and provides methods and types to stream components

A lazarus resource is an ansistring, with a name and a valuetype. Both name and valuetype are ansistrings as well.

Lazarus resources are normally included via an include directive in the initialization part of a unit. To create such include files use the BinaryToLazarusResourceCode procedure.

To create a LRS file from an LFM file use the LFMtoLRSfile function which transforms the LFM text to binary format and stores it as Lazarus resource include file.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.