Skip to main content

Problem:

Can Visual Studio 2005 WinForms display a pic 9(7)v99 value with decimal points?

Resolution:

A masked text box can be used.

Right-click on the masked text box and select Properties.

e.g. #,###,###.## has to be used as mask

The masked text box can be filled e.g. by

   01 Field pic 9(7)v99 value 1234567.89.

   set maskedTextBox1::"Text" to Field

When the property Cutlure is English (USA) - 1,234,567.89 is displayed.

When the property Culture is German (Germany) -  1.234.567,89 is displayed.

When the property Culture is German (Swiss) - 1'234'567,89 is displayed.

...

Old KB# 1524