Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Small issue with SFMT()  (Read 13992 times)
David H.
Posts: 158


« 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
Sebastien F.
Four Js
Posts: 545


« Reply #1 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
David H.
Posts: 158


« Reply #2 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.
Sebastien F.
Four Js
Posts: 545


« Reply #3 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
David H.
Posts: 158


« Reply #4 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

Sebastien F.
Four Js
Posts: 545


« Reply #5 on: June 24, 2008, 11:55:55 am »

No problem, glad to see you found the reason!
Issue closed.
Seb
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines