LotusScript笔记

LotusScript笔记

ID:39465850

大小:50.50 KB

页数:5页

时间:2019-07-04

LotusScript笔记_第1页
LotusScript笔记_第2页
LotusScript笔记_第3页
LotusScript笔记_第4页
LotusScript笔记_第5页
资源描述:

《LotusScript笔记》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、常有函数CBool(0)'printsFALSE0:假,非零:真CDbl(expr)CInt(expr)CLng(expr)CSng(expr)CStr(expr)CVar(expr)ThedatatypeofthereturnvalueisVariant.PrintFormat(9,"0.0;0%")'Output:9.0DimvalueAsIntegervalue=0PrintFormat$(value,"Yes/No")'Output"No"PrintFormat$(value,"On/Off")'Output"Off"PrintFormat$(

2、value,"True/False")'Output"False"value=2PrintFormat$(value,"Yes/No")'Output"Yes"PrintFormat$(value,"On/Off")'Output"On"PrintFormat$(value,"True/False")'Output"True"'DateandTimeformatsx=36525PrintFormat(x,"GeneralDate")'Output:12/31/1999PrintFormat(x,"LongDate")'Output:Friday,Dec

3、ember31,1999PrintFormat(x,"MediumDate")'Output:31-Dec-99PrintFormat(x,"ShortDate")'Output:12/31/99y=123.45PrintFormat(y,"LongTime")'Output:10:48:00AMPrintFormat(y,"MediumTime")'Output:10:48AMPrintFormat(y,"ShortTime")'Output:10:48PrintFormat(2010-11-1512:53:52,"yyyy-mm-dd")'Outp

4、ut:2010-11-15IfconditionThen[statements][Else[statements]]IsArray(expr)IsDate(expr)IsDefined(stringExpr)IsEmpty(expr)IsList(expr)IsNull(expr)IsNumeric(expr)IsObject(expr)LBound(arrayName[,dimension])LCase[$](expr)Left[$](expr,n)Len({stringExpr

5、variantExpr

6、numericExpr

7、typeName})L

8、Trim(stringExpr)Minute(dateExpr)Month(dateExpr)NowPrintFormat(Now(),"LongDate")OnError[errNumber]{GoTolabel

9、ResumeNext

10、GoTo0}Print[exprList]Right[$](expr,n)Second(dateExpr)Split(expressionasString[,delimiterasString[,countasInteger[,compareasInteger]]])asVariantSubInitializeDimr

11、etAsVariantdimteststrasstringDimdelimAsStringteststr="ThisistheConnection"delim=""ret=split(teststr,delim)Forx=0to3Printret(x)NextEndSub'OUTPUT'This'is'the'ConnectionSqr(numExpr)UCase[$](expr)LotusScript语法DimsessionAsNotesSessionSetsession=NewNotesSessionDimdocAsNotesDocumentSet

12、doc=session.DocumentContextDimdbAsNotesDatabaseSetdb=session.CurrentDatabaseDimviewAsNotesViewSetview=db.getView(“v_all_finish”)DimdbOtherAsNotesDatabaseSetdbOthrer=NewNotesDatabase(“,”plan.nsf”)NotesDocumentnotesDocument.UniversalIDvalueArray=notesDocument.GetItemValue(itemName

13、$)SetnotesItem=notesDocument.GetFirstItem(name$

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。