LOTUS/DOMINO学习笔记之@for和@elements的使用方法

本篇的例子讲解@for和@elements的使用

@for的原形:@For( initialize ; condition ; increment ; statement ; ... )

@elements的原形:@Elements(SalesForce)返回元素的个数

v1:=@DbLookup("";"";"$borrow";Book_ComputerID;4);
temp:=0;
@If(
@IsError(v1);
temp:=temp;
@For
(n:=1;
n<=@Elements(v1);
n:=n+1;
temp:=temp+v1[n])
);

posted on 2008-11-10 19:49  ringwang  阅读(612)  评论(0编辑  收藏  举报