Allin Cottrell a écrit :
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.

HHowever, 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.
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users

Oh, thank you! That's clear now! 
It was misleading to me  that the  same command  (setinfo) didn't produce the same result if executed in a script rather than in the command line: used in a script, the window is automatically updated.

Best,
Artur


Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.