Am trying to look the code below so it will loop the current items already in the list and display them all plus any new onces added but am having a bit of trouble doing this what am I missing or doing wrong?
Gallery.Duplicates := dupIgnore;
Gallery.Sorted := True;
//
page := '<HTML><BODY BGCOLOR=000000 TEXT=00FF00><TABLE CELLSPACING=0 CELLPADDING=0>';
page := page + '<TR>';
page := page + '<TD ALIGN=CENTER VALIGN=TOP>';
page := page + '<TABLE CELLSPACING=3 CELLPADDING=0>';
page := page + '<TR><TD ALIGN=CENTER>';
page := page + '<IMG SRC="'+FileDir+FileName+'" height="128" width="128" border="0">';
page := page + '</TD></TR>';
page := page + '<TR><TD ALIGN=CENTER>';
page := page + UserName;
page := page + '<BR></TD></TR>';
page := page + '</TABLE>';
page := page + '</TD>';
page := page + '</TR>';
page := page + '</TABLE></BODY></HTML>';
//
Gallery.Append(page);
//
for i := 0 to Gallery.Count -1 do
begin
WBLoadHTML(GalleryBrowser, Gallery[i]);
end;
Thanks