Subscribe Bookmark RSS Feed

Assigning values to a list using variable pointers

memoman

Community Trekker

Joined:

Jul 5, 2013

Hello,

I am trying to create a pair of indexes using variables. The below code gives me following output but I want {5, 42} as my output. How can I do this? I am not sure what my error is?

Thank you,

Memo

Input:

selected_FROM_column = 5;

selected_TO_column = 42;

pair_value = {selected_FROM_column, selected_TO_column};

Output:

{selected_FROM_column, selected_TO_column}

1 REPLY
pmroz

Super User

Joined:

Jun 23, 2011

selected_FROM_column = 5;

selected_TO_column = 42;

pair_value = eval list({selected_FROM_column, selected_TO_column});