I corrected in my script .Thanks for your reply. On Mon, 23 Jun 2025 at 6:41 AM, Cottrell, Allin <cottr...@wfu.edu> wrote:
> On Fri, Jun 20, 2025 at 3:12 PM Dhanasekaran Kuppusamy > <drgkd...@gmail.com> wrote: > > > > Hi Gretl users, > > The following code is not working in the new > version of Gretl-2025b. But when I use the previous version of the Gretl > it gives the results. What is the problem with the following code? What > is the solution to this problem? > > > > string F_Bound_LS= sprintf"F_Bound_Calculated : %.4f\n > F_Lower_Bound_I[0]: %.4f\n\ > > F_Upper_Bound_I[1]: %.4f\n",F_Calc_Bound_LS, F_B_I0,F_B_I1) > > This statement produces an error in the previous two versions of > gretl, 2025a and 2024d, with the same message as given by gretl 2025b, > namely > > 'sprintf': no argument was given > > That's because every gretl function requires an "argument" clause > (even if it happens to be empty, which is permissible in a few cases) > and that clause is identified by an opening left parenthesis "(" and > closing right parenthesis ")". In your statement there's a trailing > right parenthesis but no opening one. So gretl doesn't detect any > argument for the function. I'm confident that the statement as shown > above would not work in any version of gretl. > > At one time (prior to gretl 2023c) there was a "command" (as opposed > to function) version of sprintf which did not require parentheses, but > that had a different syntax and the statement above would certainly > not have worked with it. > > Allin Cottrell > _______________________________________________ > Gretl-users mailing list -- gretl-users@gretlml.univpm.it > To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it > Website: > https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/ >
_______________________________________________ Gretl-users mailing list -- gretl-users@gretlml.univpm.it To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/