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) %
>
查看全文
相关阅读:
BZOJ 3709: [PA2014]Bohater
BZOJ 3689: 异或之
BZOJ 4385: [POI2015]Wilcze doły
2017-2018 ACM-ICPC German Collegiate Programming Contest (GCPC 2017) Solution
Codeforces Round #522 (Div. 2, based on Technocup 2019 Elimination Round 3) Solution
BZOJ 4320: ShangHai2006 Homework
BZOJ 4318: OSU!
2016-2017 ACM-ICPC CHINA-Final Solution
BZOJ 5312: 冒险
Codeforces Round #520 (Div. 2) Solution
原文地址:https://www.cnblogs.com/king_astar/p/50601.html
最新文章
AtCoder Beginner Contest 115 Solution
2018-2019 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2018) Solution
2018-2019 ACM-ICPC Pacific Northwest Regional Contest (Div. 1) Solution
BZOJ 3787: Gty的文艺妹子序列
[HZNUOJ] 使用Excel + Word 批量制作准考证
2018-2019 ICPC, NEERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) Solution
Codeforces Round #525 (Div. 2) Solution
BZOJ 1316: 树上的询问
BZOJ 1303: [CQOI2009]中位数图
2018-2019 ACM-ICPC Southeastern European Regional Programming Contest (SEERC 2018) Solution
热门文章
AtCoder Beginner Contest 114 Solution
Mail.Ru Cup 2018 Round 3 Solution
字节跳动冬令营网络赛 Solution
哈尔滨理工大学软件与微电子学院第八届程序设计竞赛同步赛(高年级) Solution
Educational Codeforces Round 55 (Rated for Div. 2) Solution
Codeforces Round #524 (Div. 2) Solution
Codeforces Round #523 (Div. 2) Solution
BZOJ 3747: [POI2015]Kinoman
BZOJ 3721: PA2014 Final Bazarek
HZNUOJ 2508:双峰插云
Copyright © 2011-2022 走看看