herculanojs Posted August 2, 2016 Share Posted August 2, 2016 Hello friends I'm formatting fields ftFloat type to be displayed formatted grid. if (dataset.Fields = .DataType ftFloat) then TNumericField (dataset.Fields ) DisplayFormat: = ',00:00; - 0:00.'; However when trying to edit the registry on a UniDBFormattedNumber having such as the value of 3000, there is an error message that the value of "3.000,00" is not valid. I believe that regional issues are related. In the server did it, but without affecting the result. FFmtFormatoBR := TFormatSettings.Create; FFmtFormatoBR.ThousandSeparator := '.'; FFmtFormatoBR.DecimalSeparator := ','; FFmtFormatoBR.CurrencyDecimals := 2; FFmtFormatoBR.DateSeparator := '/'; FFmtFormatoBR.ShortDateFormat := 'dd/mm/yyyy'; FFmtFormatoBR.LongDateFormat := 'dd/mm/yyyy'; FFmtFormatoBR.TimeSeparator := ':'; FFmtFormatoBR.TimeAMString := 'AM'; FFmtFormatoBR.TimePMString := 'PM'; FFmtFormatoBR.ShortTimeFormat := 'hh:mm'; FFmtFormatoBR.LongTimeFormat := 'hh:mm:ss'; FFmtFormatoBR.CurrencyString := 'R$ '; System.SysUtils.FormatSettings := FFmtFormatoBR; What should I set up? Quote Link to comment Share on other sites More sharing options...
herculanojs Posted August 4, 2016 Author Share Posted August 4, 2016 anyone have any suggestions ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.