On Fri, 4 May 2007, Ignacio Diaz-Emparanza wrote:
> It's always exactly the same even using "setinfo".
It works
> fine in a script (in the same way "label" does) but not in
> gretl console. But if "label" only reports, why then does it
> make change the descriptive label ?
Gretl does not automatically refresh the window. You may click
on /Data/refresh window (or alt+r) to see the changes.
I do not understand how do you use "labels" to change the
descriptive label, I cannot do it here.
Ignacio is right, the "labels" command purely and simply prints
the existing descriptive labels, if any.
However, at some point I made "label" (without an 's' on the end)
some sort of alias to "setinfo". This was not a good idea, and
I'm now removing it in CVS. It's not documented and it doesn't
work, so it doesn't have much going for it!
The right way to change a variable's descriptive label (via script
or console) is as documented:
setinfo varname -d "New descriptive label"
This change may not show up at once in the main window in the GUI;
if not, you can do /Data/Refresh window, as Ignacio says.
Allin.