vb.net - How to Dimension -
i using next code calculate number of text files in folder:
dim mekdamfiles string() = directory.getfiles(mekdamfolder, "*.txt") dim mekdamtextfiles = cstr(mekdamfiles.count) the problem when number of text files in folder more 10, doesn't work. tried next code, give error number of text files:
dim mekdamtextfiles(250) mekdamtextfiles = cstr(mekdamfiles.count) any help solve appreciated.
code below worked purpose above: dim mekdamtextfiles integer = io.directory.getfiles(mekdamfolder, "*.txt").length
thanks help , comments.
vb.net visual-studio-2010
No comments:
Post a Comment