View Issue Details

IDProjectCategoryView StatusLast Update
0005878JEDI VCL00 JVCL Componentspublic2013-12-13 11:24
ReporterlimagitoAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status resolvedResolutionsuspended 
Product Version3.45 
Target VersionFixed in Version 
Summary0005878: TJvAppDBStorage doesn't store empty strings
DescriptionYou can't store empty strings using the TJvAppDBStorage
Additional InformationJvAppDBStorage.pas

function TJvCustomAppDBStorage.DoReadString(const Path: string;
  const Default: string): string;
var
  Section: string;
  Key: string;
begin
  SplitKeyPath(Path, Section, Key);
  Result := ReadValue(Section, Key);
  //THE REASON IS THE FOLLOWING 2 LINES OF CODE
  if Result = '' then
    Result := Default;
end;

Should be:

TagsNo tags attached.

Activities

limagito

2012-05-08 21:12

reporter   ~0019746

Should be:

function TJvCustomAppDBStorage.DoReadString(const Path: string;
  const Default: string): string;
var
  Section: string;
  Key: string;
begin
  SplitKeyPath(Path, Section, Key);
  if ValueExists(Section, Key, False) then
    Result := ReadValue(Section, Key)
  else
    Result := Default;
end;

obones

2012-06-11 17:33

administrator   ~0019867

Please use the latest SVN version and provide the zipped sources of a sample application showing this.

obones

2013-12-13 11:24

administrator   ~0020773

No news, suspending the issue

Issue History

Date Modified Username Field Change
2012-05-08 20:54 limagito New Issue
2012-05-08 21:12 limagito Note Added: 0019746
2012-06-11 17:33 obones Note Added: 0019867
2012-06-11 17:33 obones Status new => feedback
2013-12-13 11:24 obones Note Added: 0020773
2013-12-13 11:24 obones Status feedback => resolved
2013-12-13 11:24 obones Resolution open => suspended
2013-12-13 11:24 obones Assigned To => obones