cTableWidow行标志设置/取当选cTableWidow的行号的函数

本文介绍Centura软件中表窗行标志的设置方法,包括如何使用SalTblSetRowFlags函数来设置或清除表窗行标志,以及如何获取当前上下文行号。

 

SalTblSetRowFlags cTableWidow行标志设置
Call SalTblSetRowFlags( hWndForm,SalTblQueryContext( hWndForm ), ROW_Edited, TRUE )

SalTblQueryContext 取当选cTableWidow的行号

IFS HELP

bOk = SalTblSetRowFlags ( hWndTbl, nRow, nFlags, bSet )

Sets or clears a table window row's flags.

Parameters

hWndTbl Window Handle. The handle (or name) of a table window.
nRowNumber.  The row number of the row whose flags you want to set or clear.
nFlags Number. The row flags. You can combine any of the ROW_* flags using the OR (|) operator.
bSet Boolean. Whether to set (TRUE) or clear (FALSE) the specified flags.

Return Value

bOk is TRUE if the function succeeds and FALSE if it fails.

Example

The internal function SelectAllRows loops through all rows in a scroll range, selecting each one. SalTblQueryScroll gets the scroll range, and SalTblSetRowFlags selects each row by setting its ROW_Selected flag.

Internal Functions
   Function: SelectAllRows
   ...
      Actions

Call SalTblQueryScroll ( hWndTbl, nPosRow, nMinRow, nMaxRow )

Set nRow = nMinRow
         While ( nRow <= nMaxRow )

Call SalTblSetRowFlags ( hWndTbl, nRow, ROW_Selected, TRUE )

Set nRow = nRow + 1

See Also

SalTblQueryRowFlags

SalTblSetFlagsAnyRows

IFS Client Developer
 

nContext = SalTblQueryContext ( hWndTbl )

Returns a table window's current context row.
Before sending a SAM_FetchRow message, Centura automatically sets the context row so that assignments made while processing the message reference the correct row.

Parameters

hWndTbl Window Handle. The handle (or name) of a table window.

Return Value

nContext is the current context row number.

No Example

See Also

SalTblFetchRow

SalTblSetContext

IFS Client Developer

 

                                                       By foreveryday007 20061122
                                                       http://blog.csdn.net/foreveryday007

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值