Hello,
I have a problem with TdxMemData on load CSV file with LoadFromStrings.
If the CSV file is not correctly formed, then I obtain an error “list index out of limit” because the number of values is different to number of fields.
My workaround: I change one line of the code of LoadFromStrings:
Delphiprocedure TdxCustomMemData.LoadFromStrings(AStrings: TStrings);
...
else
begin
Append;
// old line : for J := 0 to AValues.Count - 1 do
for J := 0 to Min(AValues.Count, AFields.Count) - 1 do
if (AFields[J] <> nil) and (AValues[J] <> '') then
TField(AFields[J]).Text := AValues[J];
Post;
end;
...
Do you want to apply this patch in the next release?
Thank you.
Best regards.