Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
Discussions by product
>
Genero BDL
>
Small issue with SFMT()
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: Small issue with SFMT() (Read 13992 times)
David H.
Posts: 158
Small issue with SFMT()
«
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.
Posts: 545
Re: Small issue with SFMT()
«
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
Re: Small issue with SFMT()
«
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.
Posts: 545
Re: Small issue with SFMT()
«
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
Re: Small issue with SFMT()
«
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.
Posts: 545
Re: Small issue with SFMT()
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...