RESINFO() Function - BBj
For this topic's original documentation, seeRESINFO() Function - Get Resource File Information.
BBj-Specific Information
Control Substring Format
In BBj 4.0 and higher, the following template and table define the format of the control substring:
class:u(1),type:u(1),flags:u(4),id:u(2),x:i(2),y:i(2),w:u(2),h:u(2),popupid:u(2),siblinglist:u(2),name:c(1*=0),title:c(1*=0),boundrecordsetid:u(2),boundfield:c(1*=0),fillrecordsetid:u(2),fillfield:c(1*=0),targetrecordsetid:u(2)
Control Substring Format
Field |
Offset/Length |
Description |
Popupid |
17,2 |
Popup Menu ID. The complete popup menu string can be retrieved using the RESINFO() function using a resource key of to this value plus $0003$. For example, if popupid is $0064$ (100), the popup menu string can be retrieved with: POPUPMENU$=RESINFO(res_handle,$0064$+$0003$) If there is no popup menu associated with the control, this field will be set to $0000$. |
boundrecordsetid |
|
Bound record set. |
boundfield |
|
Bound field name in the bound record set. |
fillrecordsetid |
|
Fill record set. Only meaningful for LISTBOX, LISTBUTTON and LISTEDIT controls |
fillfield |
|
Fill field name in the fill record set. |
targetrecordsetid |
|
Target record set, only set for NAVIGATOR controls. |
Popup Menu Substring Format
In BBj 4.0 and higher, the following template and table define the format of the popup menu substring:
class:u(1),type:u(1),id:u(2),menuoffset:u(2),name:c(1*=0)
Field |
Offset/Length |
Description |
class,type |
1,2 |
Menu type as defined by CTRL(sysgui,controlid,4). |
id |
3,2 |
Popup Menu ID. |
menuofffset |
5,2 |
Starting point of the menu item information within the popup menu string. |
name |
7, n |
Null-terminated string that contains the menu name, as defined either by ResBuilder or the SENDMSG() function. |
File RecordSet Substring Format
In BBj 4.0 and higher, the following template and table define the format of the File record set substring:
id:u(2),open:u(1),name:c(1*=0),mode:c(1*=0),file:c(1*=0),template:c(1*=0)
Field |
Offset/Length |
Description |
id |
1,2 |
Record Set ID. |
open |
3,1 |
1 = FILE |
name |
4, n |
Null-terminated string that contains the menu name, as defined either by ResBuilder or the SENDMSG() function. |
mode |
4+n+1,m |
Equivalent to the string used in SQLOPEN (channel,MODE=str) |
file |
|
File name. |
template |
|
Record template. |
SQL RecordSet Substring Format
In BBj 4.0 and higher, the following template and table define the format of the SQL record set substring:
id:u(2),open:u(1),name:c(1*=0),mode:c(1*=0),connection:c(1*=0),select:c(1*=0)
Field |
Offset/Length |
Description |
id |
1,2 |
Record Set ID. |
open |
3,1 |
2 = SQL. |
name |
4, n |
Null-terminated string that contains the menu name, as defined either by ResBuilder or the SENDMSG() function. |
mode |
4+n+1,m |
Equivalent to the string used in SQLOPEN (channel,MODE=str) |
connection |
|
SQL Connection string. |
select |
|
SQL SELECT statement. |