Title: Small issue with SFMT() Post by: David H. on June 23, 2008, 04:37:58 pm Hi,
Using v2.11.02 on Windows, I notice that:- DISPLAY SFMT("%1 stock(s) checked, %2 stock(s) refreshed.",l_no_recs,l_no_done) is displayed as:- 44 STOCK(S) CHECKED, 0 stock(s) refreshed. Regards, David Title: Re: Small issue with SFMT() Post by: Sebastien F. on June 23, 2008, 05:21:02 pm Hello David,
This is working for me when using INTEGER or SMALLINT variables... Can we have more details please? What are the data types? What gives DISPLAY l_no_recs, l_no_done ? Thanks, Seb Title: Re: Small issue with SFMT() Post by: David H. on June 24, 2008, 09:10:11 am Hi Seb,
They are both INTEGER's. If I change the prompts to:- DISPLAY l_no_recs,l_no_done DISPLAY SFMT("%1 stock(s) checked, %2 stock(s) refreshed.",l_no_recs,l_no_done) I get, 44 0 44 STOCK(S) CHECKED, 0 stock(s) refreshed. Weird! David. Title: Re: Small issue with SFMT() Post by: Sebastien F. on June 24, 2008, 09:26:20 am Hi David,
Yes, it looks weird, probably a side effect. Any chance to get a sample program so we can reproduce here? What shows fglrun -i mbcs? What happens if you change a bit the message text? (maybe some invalid character inside) Cheers, Seb Title: Re: Small issue with SFMT() Post by: David H. on June 24, 2008, 10:46:53 am Hi Seb,
Apologies but this turned out to be my fault. We use an in-house developed precompiler. One thing it looks for is environment variables, which means it looks for strings like %FGLRUN%. Its currently getting a bit confused by the %1 and %2 references and uppercasing the text in between the two % characters! Very embarrassing :-) Regards, David Title: Re: Small issue with SFMT() Post by: Sebastien F. on June 24, 2008, 11:55:55 am No problem, glad to see you found the reason!
Issue closed. Seb |