GetObjectAtPointer method (DataWindows)

Description

Reports the control within the DataWindow object and row number under the pointer. Controls include columns, labels, and other graphic controls, such as lines and pictures.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Web ActiveX

DataWindow control

Syntax

[PowerBuilder]

 

string dwcontrol.GetObjectAtPointer ( )

[Web ActiveX]

 

string dwcontrol.GetObjectAtPointer ( )

Argument

Description

dwcontrol

A reference to a DataWindow control

Return Values

Returns the string whose value is the name of the control under the pointer, followed by a tab character and the row number. Returns the empty string ("") if an error occurs.

If dwcontrol is null, in PowerBuilder and JavaScript the method returns null.

Usage

If the object doesn't have a name, neither a name nor a row is reported. Since PowerBuilder 7, the painter gives names to all controls. In earlier versions, only columns and column labels got default names in the DataWindow painter and you could name other controls yourself.

You can parse the return value by searching for the tab character (ASCII 09). In PowerBuilder, search for ~t. For an example that parses a string that includes a tab, see GetValue.

For information on the rows associated with bands and therefore with controls in those bands, see GetBandAtPointer.

Examples

These statements obtain the name of the control under the pointer in the DataWindow dw_emp:

String dwobjectname
dwobjectname = dw_emp.GetObjectAtPointer()

Some possible return values are:

Table 9-5: Example return values for the GetObjectAtPointer method

Return value

Meaning

salary~t23

The control named salary in row 23.

salary_h~t15

The control named salary_h, which is in the header. Row 15 is the first visible row below the header.

See Also

  • GetBandAtPointer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值