Thank you for fixing this, Allin. It works fine now!
Artur
String substitution was not being performed in the loopOn Mon, 13 Aug 2012, artur tarassow wrote:
> I've got a problem with the following example. I want to run loop "j" over
> different samples where the starting date and ending date are given by
> strings (from @temp to @last). If you run this loop "j" separately it
> works, but embedding it into the loop "i" does give the error message:
> "Data types not conformable for operation".
>
> <hansl>
> open australia
> sprintf first "%s", obslabel($t1)
> sprintf temp "%s", obslabel($t1+2)
> sprintf last "%s", obslabel($t2)
> printf "Full sample: @first to @last.\n"
>
> scalar rep = 10
>
> loop i=1..rep
>
> smpl @first @temp
> loop j=@temp..@last
> scalar x=0
> smpl ; +1
> x=x+1
> endloop
>
> endloop
> <\hansl>
control expression for an embedded loop. That's now fixed in
CVS and snapshots.
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users