You can include any kind of resource to your Rapid-Q program, but how
can you use these other kinds? For example, if I include a .WAV file as a resource,
how can I use it in my PLAYWAV routine? Well, since PLAYWAV can take resource
handles, you can just pass it as a parameter:
$RESOURCE Bomb_WAV AS "BOMB.WAV"
PlayWav(Bomb_WAV, 1) '-- 1 = background play
SLEEP 5 '-- Wait until wav is finished
As for other types, you can extract the resource to be manipulated.
$RESOURCE Whatever_TYPE AS "text.txt"
ExtractResource(Resource(0), "text.txt")
After you're done using it, you can simply delete the file.
There are a wide range of uses for extracting resources, you can even use this
technique in an installation program. For more information on EXTRACTRESOURCE,
RESOURCE, and RESOURCECOUNT, please see Appendix C: Other reserved keywords