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
How to use Regional Decimal symbol from windows?
- yavaskoray
- Posts:29
- Joined: Mon Dec 02, 2013 11:15 am
How to use Regional Decimal symbol from windows?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: How to use Regional Decimal symbol from windows?
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
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?
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?
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?
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
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?
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?
Leopold Knipp wrote:
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.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.
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: How to use Regional Decimal symbol from windows?
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
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?
Yes. SR 1-4683856456
- yavaskoray
- Posts:29
- Joined: Mon Dec 02, 2013 11:15 am
Re: How to use Regional Decimal symbol from windows?
Can you guys share the result of the ticket here?
Thanks!
Koray
Thanks!
Koray
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: How to use Regional Decimal symbol from windows?
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
As far as I've seen on our system formatting the time worked correctly.
Best Regards
Leopold Knipp
Senior Support Specialist