Well I'm trying to make a Neopets Autopricer and i get this error when I do the following: I'm trying to the average price of an item by getting three different prices from the SW and getting the average. When I get one i try to set it to the array av(1) by using this code. av(1) = avgprice.Text And I get the error. If you're wondering why im using a textbox and not a variable it's because i get the same error in other occasions when using a variable and not a textbox. Any ideas?
Probably the array av() is not a String... so it can't store a sting in a numeric variable... That's why sometimes textboxes work for you. I hope this helped
Well, you see I was making one just have a few more bugs to fix. There should be a sticky here of programs you are making. And to let you know list boxes start at 0 for id of numbers. I have had a problem with that also.
I defined the array as a integer and I have tried a long. I'n not sure if defining it as a string will work but ill try. Oh and yes I knew listboxes started at 0.
ok if you have already got the average price then use a string. You'll be posting strings maybe that will help
and also you can only have str = lstsomething.list(x) + "hi" + lstother.list(y) you cannot have str = lngcost + lstsomething(x) + "hi" That caused my error 13.