How to use Regional Decimal symbol from windows?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
14 posts • Page 1 of 2
yavaskoray
Posts:29
Joined: Mon Dec 02, 2013 11:15 am

How to use Regional Decimal symbol from windows?

Post by yavaskoray »

Hello,

I am using a Text Field to show a float value. I have a Windows PC and "Decimal symbol" in Windows Regional settings is a comma( 99,999 ). However, my text field shows always period (99.999).
Is there a way to show floating values with the regional settings from Windows?

Regards,
Koray

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to use Regional Decimal symbol from windows?

Post by leoknipp »

As far as I know there is no possibility to format a float value according to the current OS settings.
In WinCC OA always the "dot" is used as deicmal symbol.

Best Regards
Leopold Knipp
Senior Support Specialist

yavaskoray
Posts:29
Joined: Mon Dec 02, 2013 11:15 am

Re: How to use Regional Decimal symbol from windows?

Post by yavaskoray »

Thank you for the answer.
What about the Regional Time Format Settings of the Windows? Can we read the regional time settings of the Windows and use it?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to use Regional Decimal symbol from windows?

Post by leoknipp »

When using one of the options %c, %x, %X for the CTRL function formatTime() to format a date/time the settings defined in the Windows Control Panel --> "Region and Language" are used.

Best Regards
Leopold Knipp
Senior Support Specialist

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: How to use Regional Decimal symbol from windows?

Post by Gertjan van Schijndel »

With 'sprintfUL' you can format a float according the current user regional settings.

nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Re: How to use Regional Decimal symbol from windows?

Post by nmnogueira »

Leopold Knipp wrote:
When using one of the options %c, %x, %X for the CTRL function formatTime() to format a date/time the settings defined in the Windows Control Panel --> "Region and Language" are used.
I placed a Support Request because I had some problems with formatTime("%c", t) (it did not return the Local Representation of Time), but I got no response.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to use Regional Decimal symbol from windows?

Post by leoknipp »

Have you been using the Siemens Industry Portal to submit the service request?
Do you know the number for the service request?

Best Regards
Leopold Knipp
Senior Support Specialist

nmnogueira
Posts:125
Joined: Thu May 05, 2011 12:59 pm

Re: How to use Regional Decimal symbol from windows?

Post by nmnogueira »

Yes. SR 1-4683856456

yavaskoray
Posts:29
Joined: Mon Dec 02, 2013 11:15 am

Re: How to use Regional Decimal symbol from windows?

Post by yavaskoray »

Can you guys share the result of the ticket here?
Thanks!
Koray

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to use Regional Decimal symbol from windows?

Post by leoknipp »

There is no answer available at the moment as we are currenty working on the sevice request.

As far as I've seen on our system formatting the time worked correctly.

Best Regards
Leopold Knipp
Senior Support Specialist

14 posts • Page 1 of 2