Is it possible to set a list of values to variables when the number of values in the list may change.
example
Given list A = ( 0 1 2 3 4 5 6) has 7 arguments
Set A= 0, B= 1, C=2…etc
Given list B= (0 1 2 3 4) has 5 arguments
Setq A=0,b=1,c=2…etc.
The reason why I am asking is for system variable programme I am writing where I don’t always need to set the system variable to 0. I usually set “cmdecho” off, blipmode “off”, ‘Osmode’ to 0, as well as others, but I don’t always need ‘Osmode’ set to 0 as well as other system variables. So when I don’t need it set to zero I want to exclude it from my list.
So say (SET_VAR LST) would be the programme I would use and the number of variable I would need would vary based on the number of arguments in the list.
I hope I explained what i am asking well enough.
Any help would be greatly appreciated.
Thanks
SPD