View Issue Details

IDProjectCategoryView StatusLast Update
0003984JEDI VCL00 JVCL Componentspublic2007-01-04 10:59
ReporterEinWillAssigned Tooutchy 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.20 
Target VersionFixed in Version3.30 
Summary0003984: TJvDbSpinEdit don't allow to enter empty value (empty string)
DescriptionProblem: TJvDbSpinEdit don't allow to enter empty value (empty string) into
         database, even if property AllowNull = true. Instead, value '0'
         is entered.

Solution: There are many ways to fix it. For example, lines 273-274 (jvdbspinedit.pas) says:
-------------------------------------------------------------
  FIsNull := (Text = '') and (NewValue = 0.0);
  inherited SetValue(NewValue);
-------------------------------------------------------------
It can be replaced with:
-------------------------------------------------------------
  FIsNull := (Text = '') and (NewValue = 0.0);
  if not (FIsNull and FAllowNull) then
    inherited SetValue(NewValue);
-------------------------------------------------------------

TagsNo tags attached.

Activities

outchy

2007-01-04 10:58

administrator   ~0010540

Fixed in revision 11133.

Issue History

Date Modified Username Field Change
2006-11-05 23:03 EinWill New Issue
2007-01-04 10:58 outchy Status new => resolved
2007-01-04 10:58 outchy Fixed in Version => Daily / SVN
2007-01-04 10:58 outchy Resolution open => fixed
2007-01-04 10:58 outchy Assigned To => outchy
2007-01-04 10:58 outchy Note Added: 0010540