|
|
|
|
| Product: WebSmart IDE |
Created: 2010/02/03 |
Back to Search
|
| Number: 8193 |
Type: How to |
Rate This Article |
| |
Article Description
|
| How can I use a PML array field directly in an HTML segment like I do for other fields?
|
| |
Article Details
|
Question: How can I use a PML array field directly in an HTML segment like I do for other fields? Answer: Array fields can be referenced in an HTML segment by adding PML tags into the HTML and then writing the value of the array field using the wrthtml function like this: crtarr(test_array, 20, "A", 0, 5, "the test array");
test_array[1] = "Element One";
<% wrthtml(test_array[1]); % >
The other way is to create a temporary workfield in the PML to hold the contents of the array element.
crtarr(test_array, 20, "A", 0, 5, "the test array");
crtfld(temp, 20, "A", 0, "Temp workfield");
|
|