I am grabbing some data from the Challenge Detail XML feed. I grab the Totalgain and place it directly into my multidementional array.
When I try to add it up, since it is text, it just combines the numbers (for example 1040 + 1000 = 10401000 and not 2040).
Is there an easy way to define that piece of data as an integer (keep in mind the rest of my data in the MD array is text).
Or should I just not try to directly take the XML data and place it into the array. Should I define a temp integer to grab the XML feed and then place it into my array?
What would be the best way?
Right now I am using this to grab the feed:
set challengesSCORE = sourceID.getElementsByTagName("totalgain")
allData(0,totalusercount) = challengesSCORE.item(x-1).text
I realize that I am using .text... Is there a different postfix to use?