View Issue Details

IDProjectCategoryView StatusLast Update
0003541JEDI VCL00 JVCL Componentspublic2006-03-10 13:29
ReportertmstaedtAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.10 
Target VersionFixed in Version3.30 
Summary0003541: JvRequiredFieldsValidator fails, when Control is TJvDateEdit
DescriptionA VarCastError ensues when using JvRequiredFieldsValidator on a TJvDateEdit control.

StackTrace points to:

in System.pas line 8667:
  else if not ChangeSourceAny(Dest, Source, DestType) then
    if VariantChangeTypeEx(Dest, Source, $400, 0, DestType) <> 0 then
==> VarCastError;
  end;
Additional InformationWorkaround: Use TJvCustomValidator and check if Date is 0 in the OnValidate Event.
TagsNo tags attached.

Activities

AHUser

2006-03-10 05:01

developer   ~0008652

I cannot reproduce this. Please attach a simple example that shows the bug.

2006-03-10 05:27

 

JvRequiredFieldValidatorBug.zip (5,090 bytes)

tmstaedt

2006-03-10 05:27

reporter   ~0008653

here it comes. I am using Delphi 5, Update pack 1, the jedi jvcl is 3.1 according to the AboutJVCL property, but it's from a just downloaded version which claims to be 3.20. The bug, though, was in 3.0 as well.

AHUser

2006-03-10 13:29

developer   ~0008654

Fixed in CVS. I have also added "support" for numeric values like Integer, Double and Boolean. For numeric and boolean values the validation will always pass because zero/false is a valid value.

Issue History

Date Modified Username Field Change
2006-02-27 09:05 tmstaedt New Issue
2006-03-10 05:01 AHUser Note Added: 0008652
2006-03-10 05:01 AHUser Status new => feedback
2006-03-10 05:27 tmstaedt File Added: JvRequiredFieldValidatorBug.zip
2006-03-10 05:27 tmstaedt Note Added: 0008653
2006-03-10 13:29 AHUser Status feedback => resolved
2006-03-10 13:29 AHUser Resolution open => fixed
2006-03-10 13:29 AHUser Assigned To => AHUser
2006-03-10 13:29 AHUser Note Added: 0008654