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) %
>
查看全文
相关阅读:
[bbk2342] 第47集 Chapter 09Optimizing Sore Perations(02)
[bbk2345] 第50集 Chapter 12Optimizing Sore Perations(05)
[bbk2343] 第48集 Chapter 12Optimizing Sore Perations(03)
[bbk2863] 第54集 Chapter 14Using Oracle Dasta Storage Structures Efficiently(00)
[bbk2515] 第51集 Chapter 13Using Oracle Blokcs Efficeintly[00]
[bbk2341] 第46集 Chapter 09Optimizing Sore Perations(01)
[bbk2863] 第54集 Chapter 13Using Oracle Blokcs Efficeintly[03]
[bbk2668] 第53集 Chapter 13Using Oracle Blokcs Efficeintly[02]
[bbk2344] 第49集 Chapter 12Optimizing Sore Perations(04)
QT 中的模态和非模态对话框
原文地址:https://www.cnblogs.com/king_astar/p/50601.html
最新文章
C++的构造函数作用和举例
不要让未来的你,讨厌现在的自己
指向const对象的指针 const指针
JAVA中extends 与implements有啥区别?
JAVA中implements实现多接口
用C语言实现生产者与消费者的问题(PV操作)
mmap()函数解析
几种常见加密算法初窥及如何选用加密算法 IOS
IOS手势不识别
IOS用pushMeBaby实现代替苹果的apns出现问题说是证书找不到
热门文章
Reasons why every programmer should learn c
Outlook 常用快捷键
Ten reasons to use Linux
MSDN: Rebasing Win32 DLLs: The Whole Story
[转]你真的会使用断点吗?
PC Lint 初学
[转]What Is RSS
VS Tips (new ones)
[转]COM 组件设计与应用(七) 编译、注册、调用
[bbk2516] 第52集 Chapter 13Using Oracle Blokcs Efficeintly[01]
Copyright © 2011-2022 走看看