[bo][un]xiaoqiangBJ[/un] 在 2008-9-9 16:13 的发言:[/bo]
想写段程序读取各个分组中的某一列的值,这个能做到吗?
各位老师给指点下...
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:
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
[[it] 本帖最后由 ucandoit1010 于 2008-9-9 22:00 编辑 [/it]]