View Issue Details

IDProjectCategoryView StatusLast Update
0001850JEDI VCL00 JVCL Componentspublic2004-06-23 08:42
ReporteranonymousAssigned Toremkobonte 
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001850: Exception when using Thousand separator in DisplayFormat with TJvDBCalcEdit
DescriptionWhen DisplayFormat of TJvDBCalcEdit is set with ThounsandSeparator (',', ie: '#,##0.00'), procedure DataChanged fails because it makes a try to convert DisplayText to Float with StrToFloat. But StrToFloat doesn't convert strings with thounsand separator (Delphi help says it !). So I made an update which convert thousand separator to empty char :

In JvDBControls :

procedure TJvDBCalcEdit.DataChanged;
  if Assigned(FDataLink) and Assigned(FDataLink.Field) {and DecimalPlaceRound} then
    EditText := DisplayText;
      if EditText <> '' then
        if ( StrToFloat( ReplaceString( EditText, ThousandSeparator, '')) = 0) and ZeroEmpty then
          EditText := '';
TagsNo tags attached.


has duplicate 0001851 resolvedremkobonte Bug on changing value on TJvDBCalcEdit when DisplayFormat is set with thousand separator 



2004-06-23 08:42

developer   ~0004601

Okay, thanks for the report and fix.

I used StrToFloat(TextToValText(EditText)) instead of ReplaceString.

Fixed in rev 1.60

Issue History

Date Modified Username Field Change
2004-06-09 23:18 anonymous New Issue
2004-06-23 08:42 remkobonte Status new => resolved
2004-06-23 08:42 remkobonte Resolution open => fixed
2004-06-23 08:42 remkobonte Assigned To => remkobonte
2004-06-23 08:42 remkobonte Note Added: 0004601
2004-06-24 02:01 remkobonte Relationship added has duplicate 0001851