I think array indexes were implemented in Notes 8?
tmp := "24","24","24","24","24","24","24";
tmp[1] := newstart;
tmp[@Elements(tmp)] := newend;
Background: normally "replace" functions are searching for particular values. If you're simply replacing one element in an array, that's the easiest way.
If you have to do this in an earlier version of Notes, it's tougher to read.
tmp2 := "24","24","24","24","24","24","24";
tmp := newstart : @Subset(@Subset(tmp2; @Elements(tmp2) - 1); 1 - @Elements(tmp2)) : newend;

Feedback response number WEBBAPLJGF created by ~Sigmund Umwemanoni on 07/25/2017
Replace 1st or Last Value in a list... (~Denise Froreve... 21.Jul.17)
. . well there are a few ways to do it.... (~Sigmund Umwema... 25.Jul.17) |