I think that what you are trying to do is already done.
http://www.picbasic.co.uk/forum/showthread.php?t=3891
Look at Typcasting Variables inside of Arrays.
MyArray holds all data. And you can access them by name eg Arg0, etc.
So you could make usercommand to do this for you.