저는 알고 있습니다. for 루프를 사용할 수 있었지만, 그것에 대해 아무것도 말하지 않았습니다. 도와주세요!개체 참조가 개체의 인스턴스로 설정되지 않았습니다. (완전히 깨졌습니다?) vb.net
Private Function LoadSaved() ''//Loads saved clippings if the user wants us to
Dim ZomgSavedClips As StringCollection
If IsDBNull(My.Settings.SavedClips) = False Then ''//If it is null this would return a rather ugly error. Dont want that do we?
ZomgSavedClips = My.Settings.SavedClips ''//ZomgSavedClips name was a joke, I just felt like it.
ZomgSavedClips.Add(" ") ''//This line ought to fix the error, but doesnt
i = 0
While i < ZomgSavedClips.Count ''//This is where the error occurs
ClipListings.Rows.Add(ZomgSavedClips(i))
i = i + 1 ''//First time I wrote this function I forgot this line. Crashed mah comp. Fail.
End While
End If
End Function
While i < ZomgSavedClips.Count
이 도청되는 라인은 내가 .count
가 null 반환해야 함을 알고 있지만 난 그냥 정지 텍스트의 빈 조각을 추가했다. 이걸로 뭐야? 실제 텍스트를 추가해야합니까?
항상 그런 식으로 코드에 주석을 달았습니까? : P – Thorarin
아니 롤, 나중에 소스를 판매 계획, 그리고 그것을 구입하는 사람들은 VB에 대해 너무 많이 모르는다고 가정합니다. – Cyclone
특히 나는 당신이 유용한 코멘트로 자신을 제한하는 것이 좋습니다. 나는 어리석은 농담을하는 경향이있다. 그러나 매우 전문적이지는 않다. :) – Thorarin