zoukankan
html css js c++ java
在function中使用recordset对象
function
GetTotalFee(rsObj)
set
rs
=
rsobj
allsum
=
0
rs.Movefirst
while
not
rs.eof
daysum
=
0
for
i
=
6
to
rs.fields.count
-
8
if
instr
(
lcase
(rs.fields(i).name),
"
remark
"
)
=
0
then
if
Not
IsNull
(rs(rs.fields(i).name))
then
if
cint
(
trim
(rs(rs.fields(i).name)))
<>
0
then
daysum
=
daysum
+
cint
(
trim
(rs(rs.fields(i).name)))
'
Response.write daysum&"<br>"
end
if
end
if
end
if
next
allsum
=
allsum
+
cint
(daysum)
rs.MoveNext
wend
GetTotalFee
=
allsum
end function
sql_display
=
"
select * from expense where fileno ='
"
&
strBH
&
"
' order by expenseDate asc"
set
objDisplay
=
conn.
execute
(sql_display)
调用
<
%
=
GetTotalFee(objDisplay) %
>
查看全文
相关阅读:
spring入门-day01
HTML概述
day21-基础加强
iptables
25个iptables常用示例
Linux安全调优1:CentOS防火墙的设置与优化
sessionStorage 的数据会在同一网站的多个标签页之间共享吗?这取决于标签页如何打开
JavaScript reduce() 方法
classList属性和className的区别
NPM 学习笔记整理
原文地址:https://www.cnblogs.com/king_astar/p/50601.html
最新文章
GitHub建立云盘
[cf] Codeforces Round #687 (Div 2)
2020_12_2_数据结构
Codeforces Round #629 (Div. 3)(A-D)
P1129 [ZJOI2007]矩阵游戏 二分图最大匹配
Educational Codeforces Round 84
樱花 混合背包
牛客小白月赛23
归并排序求 逆序对
带分数 全排列
热门文章
Codeforces Global Round 7
Codeforces Round #627 (Div. 3)
Educational Codeforces Round 83 (A-E)
淘淘商城之技术总览
面试
Spring与Web-day06
Spring与MyBatis-day05
Spring与DAO-day04
Spring与AOP-day03
Spring与IoC-day02
Copyright © 2011-2022 走看看