Sorry, that was not a good suggestion on my part. String substitution
is
 generally a last resort and it's not needed in this case, since commands
 are supposed to accept scalar variables in place of numerical constants.
 My revised recommendation here would be:
 
 scalar ft1 = $t2 + 1
 scalar ft2 = $t2 + b.nhor
 fcast ft1 ft2 --dynamic
 
 I gather that your original version,
 
 fcast ($t2+1) ($t2+b.nhor) --dynamic
 
 worked OK once you sorted out the "dynamic" issue, but you "got
lucky"
 in that respect. Such expressions are fragile in a command context. For
 example if you inserted spaces
 
 fcast ($t2 + 1) ...
 
 the parsing would fall apart. (And I don't consider that a bug, because
 commands generally expect space-separated arguments.)
 
 Allin
 
 _______________________________________________
 Gretl-users mailing list
 Gretl-users(a)lists.wfu.edu
 
http://lists.wfu.edu/mailman/listinfo/gretl-users