View Issue Details

IDProjectCategoryView StatusLast Update
0004669JEDI VCL00 JVCL Componentspublic2009-07-08 15:40
ReporterMistralAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.35 
Target VersionFixed in Version3.38 
Summary0004669: [TJvDBMaskEdit] 3.36 when modify a date or datetime DB field you get an EConvertError
DescriptionOn JVCL 3.33 all works fine. On 3.36 a modify on the method :

procedure TJvDBMaskEdit.UpdateData(Sender: TObject);

in the unit JvDBControls systematically raises an exception EConvertError ('xxxx' is not a valid date) when modifying a DB field date or datetime kind.
Additional InformationTo solve this issue for the moment I modify the procedure like that :

procedure TJvDBMaskEdit.UpdateData(Sender: TObject);
//var
// OrgMask: string;
begin
  ValidateEdit;
// if IsMasked then
// begin
// OrgMask := EditMask;
// try
// EditMask := '';
// if Text = '' then
// begin
// FDataLink.Field.Clear;
// Exit;
// end;
// finally
// EditMask := OrgMask;
// end;
// end;
  FDataLink.Field.Text := Text;
end;

TagsNo tags attached.

Activities

obones

2009-04-29 11:45

administrator   ~0015451

Please provide the zipped sources of a sample application showing this.

2009-04-30 14:51

 

TestProject.zip (13,020 bytes)

Mistral

2009-04-30 14:56

reporter   ~0015504

I've attached a TestProject.zip. There is a sample project with a sample Ms Access DB. Run the program, click on connect and try to modify the date field : I get an EConvertError. I'm testing it with the original 3.36 JVCL on D2007 or D2009.

obones

2009-07-08 15:40

administrator   ~0015787

This is now fixed in SVN

Issue History

Date Modified Username Field Change
2009-01-23 07:05 Mistral New Issue
2009-02-02 01:25 obones Status new => acknowledged
2009-04-29 11:45 obones Note Added: 0015451
2009-04-29 11:45 obones Status acknowledged => feedback
2009-04-30 14:51 Mistral File Added: TestProject.zip
2009-04-30 14:56 Mistral Note Added: 0015504
2009-07-06 14:10 obones Status feedback => acknowledged
2009-07-08 15:40 obones Note Added: 0015787
2009-07-08 15:40 obones Status acknowledged => resolved
2009-07-08 15:40 obones Fixed in Version => Daily / SVN
2009-07-08 15:40 obones Resolution open => fixed
2009-07-08 15:40 obones Assigned To => obones