vb.net - length > 1 but only done once in for loop -
code :
private sub refreshtodolist() handles mybase.load if fileexists(newevent.todoitems_path) , fileexists(newevent.tododates_path) , fileexists(newevent.todocontents_path) if not contentof(newevent.todoitems_path).tostring = "" , not contentof(newevent.tododates_path).tostring = "" , not contentof(newevent.todocontents_path).tostring = "" todolistitems = contentof(newevent.todoitems_path).tostring.split(new string() {environment.newline}, stringsplitoptions.none) todolistdates = contentof(newevent.tododates_path).tostring.split(new string() {environment.newline}, stringsplitoptions.none) todolistcontents = contentof(newevent.todocontents_path).tostring.split(new string() {environment.newline}, stringsplitoptions.none) end if if todolistitems.length = todolistdates.length , todolistitems.length = todolistcontents.length count integer = 0 todolistitems.length - 1 todolistbox.items.add(todolistitems(count)) todolistinfo(count) = "date : " + todolistdates(count) + convert.tostring(environment.newline + environment.newline) + "content : " + todolistcontents(count) next end if end if end sub
checked, , todolistitems.length
3
there 1 item in todolistbox
.
what's problem in code? seemed in loop.
Comments
Post a Comment