문자열 형식의 숫자의 arraylist에서 정수의 arraylist를 만들려고합니다. I는 다음과 같은 코드를 실행할 때 임시 문자열로 게재되어 있으므로 uocountdown 값보다는 44convert.tob과 함께 오류가 발생했습니다.
uoitemQuantity보다 -2147483637 같은 값 끝나게하는 문자열의 ArrayList를이다
uocountdown 정수
의 ArrayList를되어야For it = 0 To uocount.Count - 1
Dim temp As Integer = Convert.ToInt32(uoitemQuantity(it))
uocountdown.Add(temp)
Next
왜 이것이 작동하지 않는지 잘 모르겠지만 어떤 도움을 주시면 감사하겠습니다.
arraylist 대신 List (Of Int32)를 사용하면 변환 할 필요가 없습니다. – Plutonix