MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


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] ====


  • Prev by Date: Need help running Mathematica for Windows
  • Next by Date: Re: functional code
  • Previous by thread: Re: equ. of 'ls' in 'Context' ?
  • Next by thread: Re: equ. of 'ls' in 'Context' ?