- Having trouble naming a matrix after the value of a variable
- 23 Oct 2018 11:34:02 am
- Last edited by fluorinegas on 24 Oct 2018 09:12:13 am; edited 2 times in total
I'm relatively new and need some help with a part of my program that I've been struggling with.
Basically, I'm trying to have somebody input their name, which is then stored to the variable namevar. I need to then store the string that's stored to namevar to a list, which I've done relatively easily. However, I then need to name a matrix after the value, but can't seem to figure out how to do that. Any suggestions? I'm using a V200
Edit: Got it working, thanks to Xeda! Here's my code:
Code:
Basically, I'm trying to have somebody input their name, which is then stored to the variable namevar. I need to then store the string that's stored to namevar to a list, which I've done relatively easily. However, I then need to name a matrix after the value, but can't seem to figure out how to do that. Any suggestions? I'm using a V200
Edit: Got it working, thanks to Xeda! Here's my code:
Code:
Dialog
Request "namevar",namevar
EndDlog
[[1,1],[1,1]]→#namevar