cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Prime 6.0: how to convert string into variable?

FraRaff
6-Contributor

Prime 6.0: how to convert string into variable?

Dear all,

 

I am trying to convert a vector of strings vectstrn=("var1", "var2", ... , "varN") into an equivalent vector or variables vecvar=(var1, var2, ... , varN). Then I would need to assign this variable names to another vector of values already existing.

 

Can anyone help me with this issue?

 

Thanks in advance

1 REPLY 1
Werner_E
25-Diamond I
(To:FraRaff)

Its a long standing wish to be able to do what you demand, but unfortunately there is no method available here to create a variable from the name provided as a string.
The problem came up now and then here in the forum and sometime it was suggested to try fiddling around with the XML structure of the worksheet itself, but I don't know of any viable and solid solution being ever posted here.

Announcements

Top Tags