group数据窗口 怎样具体读取每个 分组的数据
想写段程序读取各个分组中的某一列的值,这个能做到吗?各位老师给指点下...
想写段程序读取各个分组中的某一列的值,这个能做到吗?
各位老师给指点下... [/quote]
This code finds the number of the row at which a break occurs in group 1.
It then checks whether the department number is 121. The search begins at row 0:
[font=Arial][size=3]boolean lb_found
long ll_breakrow
lb_found = false
ll_breakrow = 0
DO WHILE NOT (lb_found)
ll_breakrow = dw_1.FindGroupChange(ll_breakrow, 1)
// If no breaks are found, exit.
IF ll_breakrow <= 0 THEN EXIT
// Have we found the section for Dept 121?
IF dw_1.GetItemNumber(ll_breakrow, &
"dept_id") = 121 THEN
lb_found = true
END IF
// Increment starting row to find next break
ll_breakrow = ll_breakrow + 1
LOOP
IF lb_found = false THEN
MessageBox("Not Found","The Department was not found.")
ELSE
... // Processing for Dept 121
END IF[/size][/font]
[[it] 本帖最后由 ucandoit1010 于 2008-9-9 22:00 编辑 [/it]]
页:
[1]
