Product Site

6.17. The RESOURCES StringTable (.RESOURCES)

The .RESOURCES environment symbol identifies a StringTable of data resources that ::RESOURCE directives in the currently running program define. The StringTable indexes are the resource names, the StringTable values are arrays of individual resource data lines.

If there are no ::RESOURCE directives, the .RESOURCES symbol has the default value of .RESOURCES.
Example 6.5. .RESOURCE
do name over .resources
  say name":" .resources[name]~items "lines"
  say .resources[name]~makeString
end

::resource greyCat end "-"
La nuit, tous les chats sont gris
---------------------------------

::resource "brown fox"
The quick brown fox jumps over the lazy dog
::END

::resource nollop end ANONYMOUS
     The wicked peon quivered,
then gazed balefully at the judges
         who examined him.
ANONYMOUS TYPESETTER

/* Displays:
GREYCAT: 1 lines
La nuit, tous les chats sont gris
BROWN FOX: 1 lines
The quick brown fox jumps over the lazy dog
NOLLOP: 3 lines
     The wicked peon quivered,
then gazed balefully at the judges
         who examined him.
*/