
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Good morning all. I realize you can access the contents of an array via the index. However, I can't seem to find a way to print or view the contents of an array. I want to see the values so I can select valid entries.
Thanks!
Tony
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
This is how I do it for dynamic arrays, capturing data at run time and printing out the values (or use writeln)
array_SIZE := 10; //set your array size
arrayOf_things : array[array_SIZE] of string; // define your array
WebParseHtmlBoundArray(arrayOf_things, array_SIZE, ToEncoding("left bound"), ToEncoding("right bound"), NumMatchesFound, WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE);
WebFormGet("Some web request");
Print("DEBUG - Num <name your things> found: " + NumMatchesFound);
for i := 1 to NumMatchesFound do
Print("DEBUG - value at array index "+ i+ " " + arrayOf_things);
end;
I hope this helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
This is how I do it for dynamic arrays, capturing data at run time and printing out the values (or use writeln)
array_SIZE := 10; //set your array size
arrayOf_things : array[array_SIZE] of string; // define your array
WebParseHtmlBoundArray(arrayOf_things, array_SIZE, ToEncoding("left bound"), ToEncoding("right bound"), NumMatchesFound, WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE);
WebFormGet("Some web request");
Print("DEBUG - Num <name your things> found: " + NumMatchesFound);
for i := 1 to NumMatchesFound do
Print("DEBUG - value at array index "+ i+ " " + arrayOf_things);
end;
I hope this helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thanks, I figured I'd probably have to iterate through the array. I was hoping there was an easier answer. Something along the lines of "ListPrint" or something. Oh well, hi ho hi ho it's off to iterate I go.
Thanks again,
Tony