On 24/09/13 16:47, Logan Kelly wrote:

The following code yields a weird error. I think I may be doing something silly. I am using WIN 8 64 bit with Gretl 1.9.12CVS 8/9/2013 (could be a bit old).

 

bundle bARG

       bARG["hrzn"] = 20

     

#Set forecast horzion

scalar intHRZ = inbundle(bARG, "hrzn") ? bARG["hrzn"] : 5*$pd

set horizon intHRZ

 

Here is the error:

 

'inthrz': not a scalar

 

Error executing script: halting

> set horizon intHRZ



It seems to be a problem with the capital letters. This is working here:

scalar inthrz = inbundle(bARG, "hrzn") ? bARG["hrzn"] : 5*$pd

set horizon inthrz


--
Firma Arista
Ignacio Díaz-Emparanza
Zuzendaria/Director
ignacio.diaz-emparanza@ehu.es
94 6013732
EKONOMIA APLIKATUA III SAILA (EKONOMETRIA ETA ESTATISTIKA)/ DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU

Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013740 | F.: +34 946013754
www.ea3.ehu.es
ERNE! Baliteke mezu honen zatiren bat edo mezu osoa legez babestuta egotea. Mezuak badu bere hartzailea. Okerreko helbidera heldu bada (helbidea gaizki idatzi, transmisioak huts egin) eman abisu igorleari, korreo honi erantzunda. Kontuz! Mezua ez bada zuretzat, ez erabili, ez zabaldu beste inori, ez kopiatu eta ez baliatu.
¡ATENCIÓN! Este mensaje contiene información privilegiada o confidencial a la que sólo tiene derecho a acceder el destinatario. Si usted lo recibe por error le agradeceríamos que no hiciera uso de la información y que se pusiese en contacto con el remitente.

E-mail hau inprimatu baino lehen egiaztatu inprimatzeko beharra.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.