If the string contains spaces it must be quoted:On Thu, 13 Mar 2014, yinung at Gmail wrote:
> Dear all,
>
> I am using 1.9.14 (build date 2013-11-21). I found that the command,
> setinfo, may have a small bug when used with "sprintf." See the following
> script
>
> <hansl>
> nulldata 10
> series x=normal()
> lag=3
> series y=movavg(x(-1),lag)
> sprintf sInfo "This is generated from movavg(%s(-1),%d)","x",lag
> setinfo y -d @sInfo
> </hansl>
>
> It seems that setinfo with a string @sInfo will not allow any space in that
> string.
setinfo y -d "@sInfo"
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users