Ok, here it is broken down. I have this array in my form load event.
VB Code:
myarray= array("Jim", "Bob", "Sam", "Mike")
I use a function to read a integer value from a file that corresponds with that index in my array. However, somehow it gets off occasionally.
Say my function returns 2
since the first value in an array is 0 then Sam would be an index of 2
But sometimes when I use:
instead of returning Sam it returns Mike
However, Mike has an index of 3
What's going on here?
Also, I am using a For ....Next Loop to loop through a listview getting info on the files and converting the numbers to names .
This is just an example, my array contains about 128 different names. Any help is appreciated.
-Jeremy