大家帮我看一段代码
Set doc = collection.GetFirstDocument
hz_v = doc.getitemvalue("szfwhI_fwh")
hz_s = hz_v(0)
hz_i = Val(hz_s)
hz_i = hz_i + 1
hz_s = Trim(Str(hz_i))
Call doc.ReplaceItemValue( "szfwhI_fwh",hz_s)
Call doc.Save( True, True )
Call uidoc.fieldsettext("flag_ifadd","true")
是什么意思啊?GetFirstDocument是什么意思啊?ReplaceItemValue与fieldsettext有什么区别啊?item是什么意思啊?
问题点数:0、回复次数:4Top
1 楼qingshuiyan(清水炎)回复于 2003-06-03 08:38:42 得分 0
up
我是处学者
关注!
:)Top
2 楼happywwh(学,知不足)回复于 2003-06-03 08:45:02 得分 0
帮助上有这些函数的说明
Top
3 楼panda555(发哥)回复于 2003-06-03 08:52:35 得分 0
GetFirstDocument 为返回视图的第一个文档
ReplaceItemValue( "szfwhI_fwh",hz_s)为用hz_s域取代名字为szfwhI_fwh的域
fieldsettext则是给域赋值
你这段代码好像不全呀Top
4 楼fengyi999(老多)回复于 2003-06-03 08:56:07 得分 0
Set doc = collection.GetFirstDocument //获得文档集合中的第一个文档
hz_v = doc.getitemvalue("szfwhI_fwh") //获得文档中域名为szfwhI_fwh的值,我想一定是多值的
hz_s = hz_v(0) //获得多值域第一个值
hz_i = Val(hz_s) //
/*
Val function
样例
Returns the numeric value represented by a string.
Syntax
Val ( stringExpr )
Elements
stringExpr
Any string expression that LotusScript can interpret as a numeric value. It can contain any of the following kinds of characters.
Digits (0 1 2 3 4 5 6 7 8 9)
Other characters in hexadecimal integers (a b c d e f A B C D E F)
Sign characters (+ -)
Decimal point (.)
Exponent characters (E e D d)
Prefix characters in binary, octal, and hexadecimal integers (& B O H)
Suffix type characters (% & ! # @)
Return value
Val returns the converted part of stringExpr as a Double.
*/
hz_i = hz_i + 1
hz_s = Trim(Str(hz_i))
Call doc.ReplaceItemValue( "szfwhI_fwh",hz_s)
Call doc.Save( True, True )
Call uidoc.fieldsettext("flag_ifadd","true")
ReplaceItemValue与fieldsettext的区别
ReplaceItemValue可以改变一个域的值,(这个域原来有值的)
fieldsettext是赋值,(这个域一定是存在的,但缺省值一定为"",也就是空)
Top




