Re: equ. of 'ls' in 'Context' ?

*To*: mathgroup at smc.vnet.net*Subject*: [mg4809] Re: equ. of 'ls' in 'Context' ?*From*: vvs124 at rsphy1.anu.edu.au (Victoria Steblina)*Date*: Fri, 20 Sep 1996 01:12:35 -0400*Sender*: owner-wri-mathgroup at wolfram.com

At 10:16 9/16/96, Andrei Constantinescu wrote: >The next question would now be: is there any possibility >of getting the information in a object (i.e. a List) ? >This seems a little bit trickier as Math doesn't give a >ny output on the Information question : > >In[4]:= ?`t400* >t400 t400a3p t400a53p t400a54p t400b53p t400c54p > >In[4]:= > >Regards, > > Andrei here is a rough and ready way... You'll need to use Names though: In[10]:= a=1; b=2; c=3; Names["`*"] Out[13]= {a, b, c} In[14]:= Do[ info = "?"<>ToString[ %[[i]] ]; ToExpression @ info, {i, Length[%]} ] Global`a a = 1 Global`b b = 2 Global`c c = 3 Hope it helps Cheers, Vicki ==== [MESSAGE SEPARATOR] ====