Tue 6 Dec 2005
When working with HTML areas or an IScript page, it is still often very convenient to store data into arrays. When converting the data into the necessary HTML, the Join() method of the Array class still provides a convenient way to formulate your HTML without doing a loop. The following examples should illustrate.
To generate a series of paragraphs from an array &arPara:
&html = &arPara.Join("</p><p>", "<p>", "</p>");
To create an unordered (bullet) list from &arList:
&html = &arList.Join("</li><li>", "<ul><li>", "</li></ul>");