Summary: Syntax
nameIDRCDATA[[loadoption]] [[memoption]]
BEGIN
rawdata
END
The RCDATA statement defines a raw data resource for an application. Raw data resources permit the inclusion of binary data directly in the executable file.
The nameID field specifies either a unique name or an integer that identifies the resource.
The optional loadoption field takes a keyword that specifies when the resource is to be loaded. It must be one of the following:
PRELOAD
Resource is loaded immediately.
LOADONCALL
Resource is loaded when called. This is the default option.
The optional memoption field takes the following keyword or keywords, which specify the memory status of the resource:
FIXED
Resource remains at a fixed memory location.
MOVEABLE
Resource can be moved if necessary to compress memory.
DISCARDABLE
Resource can be discarded if no longer needed.
The default is both MOVEABLE and DISCARDABLE.
The rawdata field specifies one or more integers and strings. Integers can be in decimal, octal, or hexadecimal format.
The following example demonstrates the correct usage for the RCDATA
statement:
resname RCDATA
BEGIN
“Here is a data string\0", /* A string. Note: explicitly
null-terminated */
1024, /* int */
0x029a, /* hex int */
0o733, /* octal int */
”\07" /* octal byte */
END