491
OBJ( ) Function
Return Object Information
Formats
OBJ(ctl_id,ERR=stmtref)
Where:
ctl_id
Control ID number that is assigned to each control when created. Numeric
expression. If 0 zero, information about the current window is returned
stmtref
Program line number or label to transfer control to.
Returns
String, 64 characters, information about custom control object.
Description
The OBJ( ) function returns a string containing information about a given custom
control object (i.e., BUTTON, LIST_BOX, etc.). If the control doesn't exist, ProvideX
returns an Error #65: Window element does not exist or already
exists. The example below shows what is returned for existing LIST_BOX 10.
The string returned by the OBJ( ) function contains 64 characters:
0020 LIST_BOX 10,@(10,10,60,10),FMT="L8 B2 L20 C10 N15 C3"
->?hta(obj(10))
00040000000A000A003C000A0000000000000978004E00CE01E40092004F009501E2009000000000
000000000000000000000000000000000000000000000000.
Characters
Information Returned by OBJ( )
Object Type:
1,2
$0001$ Push Button
$0002$ Check Box
$0003$ Tri_State Check Box
$0004$ Standard List Box
$0005$ Variable List Box
$0006$ Drop Box
$0007$ Variable Drop Box
$0008$ Multi-Line Edit Box
$0009$ Radio Buttons
$000A$ External VBX
$000B$ List View
$000C$ Tree View
$000D$ Grid
$0010$ Vertical Scroll Bar
$0020$ Horizontal Scroll Bar