ok...here's the deal...I've written a piece of code that would essentially take the files from a folder and put them in a temporary array, and then sort out the ones that are JPEG or PNG format...but everytime I run it with some files actually in the folder i get an error message...
Here's the code:
Dim i As Integer
Hrvtemp = IO.Directory.GetFiles(Application.StartupPath().ToString + "data1Croatian")
If Hrvtemp.GetLength(0) >= 2 Then
For i = 1 To Hrvtemp.GetLength(0)
Dim j As Integer = 1
If VB.Right(Hrvtemp(i), 4) = ".jpg" Or VB.Right(Hrvtemp(i), 4) = ".png" Then
j += 1
i get the error at "Hrv.SetValue(Hrvtemp(i), j)"..."Object reference not set to an instance of an object."...but i dont get it cuz both of the arrays are defined as String...and it should work and worked many times before...but this time it just wont for some reason...
PS: i imported VB as Microsoft.VisualBasic...