RESOURCE Mnemonic - Invoke Prepared Resource

Syntax

'RESOURCE'(size),resource_string$

Description

For BBj-specific information, see RESOURCE Mnemonic - Invoke Prepared Resource.

The 'RESOURCE' mnemonic displays a window/dialog created with the BASIS Resource Editor. The size parameter must be the length of the string returned by the RESGET() Function - Get Resource function. In Revision 2.20 and above, if an !ERROR=12 (missing file) occurs while creating a tool button or image, the 'RESOURCE' mnemonic sets TCB(10) to the ID number of the control that caused the error. Before using this mnemonic, open the resource with the RESOPEN() function and extract the string for one window with the RESGET() function, as shown in the example.

Parameter

Description

size

The length of the resource string returned by the RESGET() function.

Example

0010 OPEN (1) "X0"
0020 H=RESOPEN("TEST3.BRF")
0030 R$=RESGET(H,1,1)
0040 PRINT (1)'RESOURCE'(LEN(R$)),R$

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing