Loosing fractional digits

Knowledge exchange related to dycodoc, the visual form and document designer

Moderator: IDEAL Software Support

Loosing fractional digits

Postby Hans Fuchs » Mon Sep 09, 2019 10:32 am

I want the user to enter a currency value in an interactive field.

But in the OnAfterFieldChange-Event i only get the digits on the left side of the decimal point.

I tested an Interactive-TextField and an Interactive-FormField.

And i tested the following NumberFormats (DokumentField-Type -> Number):
- Currency
- Currency Default
- User Defined (Number Format : #0.00;;#0.00)

What's wrong?

Thanks!
Hans Fuchs
 
Posts: 13
Joined: Mon Mar 17, 2014 9:25 am

Re: Loosing fractional digits

Postby IDEAL Software Support » Tue Sep 10, 2019 11:28 am

VPE is using a MS-Visual C runtime function to convert a numeric string to a decimal number. So the field formatting does not apply to input, only to output. Thousand separators or currency symbols may not be used for input.

However, we confirm this to be a bug, as the current system locale setting is not used for the decimal point during input. If you enter a "." you will notice that fractional parts can be entered.

We created a fix, which will consider the current system locale setting.

You can send us an e-mail with your license key and we will provide you the updated VPE DLL.
IDEAL Software Support
 
Posts: 1536
Joined: Thu Nov 18, 2004 4:03 pm


Return to DCD Open Forum

Who is online

Users browsing this forum: No registered users and 2 guests