Futurebasic/Language/Reference/kill resources

From Wikibooks, open books for an open world
< Futurebasic‎ | Language‎ | Reference
Jump to: navigation, search

KILL RESOURCES[edit]

Syntax[edit]

KILL RESOURCES "resType", resID%, ["resType", resID%...]

Revised[edit]

October 19, 2000 (Release 4)

Description[edit]

This statement will store specified resource types and IDs in an internal list. When one of these resources is encountered by the compiler, it will not be added to the built application.

There are two important reasons for a call like this. The first is that resources normally included in the runtime shells may be considered unnecessary by a programmer may easily be deleted from the finished product. The second is that multiple resource files may be used and unnecessary resources may be eliminated programmatically.

Example:
To prevent a picture resource with an ID of 8001 from being added to the compiled application, the syntax would be:

KILL RESOURCES "PICT", 8001

See Also[edit]

RESOURCES