04-21-2023, 01:29 AM
(04-20-2023, 07:46 AM)PaulWeem Wrote: Hi Alexandre,
I'm using Delphi 11.3, patch 1 with IW 15.3.3.
When creating my form, I have an empty Accordion and dynamically create Sections with:
...
s := TIWJQSection.Create(AccordionRemarks);
s.Name := 'Section_' + IntToStr(i);
s.Caption := 'Section_' + IntToStr(i);
s.SectionIndex := i;
AccordionRemarks.AddSection(s);
Inc(i, 1);
...
When publishing the form, I get an AV.
Pardon my aside on the subject, but I'm sure you know all the names must be unique to the entire page (DOM). Otherwise strange things happen (not that I've ever made that mistake
). But, I don't remember it causing an AV. Probably not your problem, but definitely worth keeping in mind when you're building names at runtime.Dan

