cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar

Column to List

Hi,
Please excuse the newbie question...

How can I read in column values to a list or, alternatively just add items to a list.

Thankyou
Fanie
2 REPLIES 2
carole
Level III

Re: Column to List

Hi,

You can use :

lst = column("ColumnName") << GetAsMatrix();

lst will be a list if your column values are string, or a vector if numeric.
You can tranform a vector into list with AsList() but lots of properties are the same between vectors and lists.

To insert one value by value you have to use :
lst = list();
InsertInto(lst,value);

Hope i answer your question,
Carole

Re: Column to List

Thank you ... it worked great!