I'm looping through an xml node list and concatenating a string variable with the following:
for x=0 to nl.count-1
temp$=temp$ & nl(x).attributes("text1").value
Next x
I then use the temp$ variable to fill a rich text box:
rtf.text=temp$
I know this isn't a smart way to do things, and an issue I'm running into is an out of memory error on larger nodelists during the loop.
But I can't figure out why because it isn't consistent. The error says the string is causing the error, but the length is well within the usable limits, so I'm thinking I just need a better method than concatenating.
(Note - there is other info being added to the string during the loop, which is why I'm not using a dynamic array, but maybe that's the solution...)
Any ideas?
Thanks.
Carp
for x=0 to nl.count-1
temp$=temp$ & nl(x).attributes("text1").value
Next x
I then use the temp$ variable to fill a rich text box:
rtf.text=temp$
I know this isn't a smart way to do things, and an issue I'm running into is an out of memory error on larger nodelists during the loop.
But I can't figure out why because it isn't consistent. The error says the string is causing the error, but the length is well within the usable limits, so I'm thinking I just need a better method than concatenating.
(Note - there is other info being added to the string during the loop, which is why I'm not using a dynamic array, but maybe that's the solution...)
Any ideas?
Thanks.
Carp