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

1万+

被折叠的 条评论
为什么被折叠?



