ToList Function

  • Updated

Returns a list object from a collection.

Syntax 1

 

Returns a list object from a collection.

 

ToList(collection, valueField)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

valueField

Field - A field in the collection.

Syntax 2

 

Returns a list object from a collection.

 

ToList(collection, valueField, displayField)

 

 

Arguments:

 

 

 

collection

Collection - A collection.

 

 

valueField

Field - A field in the collection.

 

 

displayField

Field - A field in the collection.

Remarks

  • Example: ToList(Collection1, Field1) returns value-list:{"a", "b", "c"}.
  • Example: ToList(Collection1, Field1, Field2) returns value-list:{{1, "a"}, {2, "b"}, {3, "c"}}.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.