This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
There are three things that I can see in your code.... ~Umberto Nongeroson 16.Jan.04 06:21 PM a Web browser Notes Client 6.5Windows 2000, Windows XP
@If(@Elements(Activity) = 0; @Return(0); ""); FIELD recent_activity := @Today;
n := 1;
@DoWhile(
tmpDate:= @Left(Activity[n]; " - ");
tmpAct:= @Right(Activity[n]; " - ");
@command([Compose]; ""; "Mod_Activity");
@SetField("Activity_date"; tmpDate);
@SetField("Activity_enter"; tmpAct); REM { @SetDocField($Ref; "recent_activity"; @Today) You do not need this in the loop};
@Command([FileSave]);
@Command([FileCloseWindow]);
n := n + 1; REM { n <= @Elements(Activity) you do not need the trailing ";"};
n <= @Elements(Activity)
)