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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Feb 29, 2016, 12:00 PM
9 Posts

create empty list with @Formula

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: @formula
  • Replies: 5

is there a nicer way to define an empty list (no elements) with @formula language instead of the following:

 

list:= "";
list:=@Subset(list;@Member("";list)-@Elements(list));

Feb 29, 2016, 12:28 PM
43 Posts
Just curious, why do you write it that way ?

list := @Subset("":""; 0)

That is essentially what your original code is doing, right ?

Feb 29, 2016, 1:34 PM
107 Posts
The second argument to @Subset must not be zero.
see also in Designer help
Feb 29, 2016, 1:36 PM
107 Posts
list := "" is sufficient
I suppose you are seeking for something like an empty array, i.e. no elements strictly speaking. I'm afraid that concept does not exist in the Notes formula language, just like there is no such thing as a truly empty field on a Notes document. The closest approximation you can get is an empty string.
Mar 2, 2016, 8:30 PM
100 Posts
What are you actually trying to do?

My guess is you're using this null/empty list for something. It might help if you described what you're trying to accomplish; perhaps there's another way to skin that cat and we can provide some input into a solution.

Mar 2, 2016, 8:30 PM
100 Posts
What are you actually trying to do?

My guess is you're using this null/empty list for something. It might help if you described what you're trying to accomplish; perhaps there's another way to skin that cat and we can provide some input into a solution.


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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal