If I were to use an unspecified maximum number of lines in a text file, and I know there is over 1,000 lines of text in the slides.mtr file:
What should I replace the red J in this example with?
And if I were to retrieve the SlideTag, for example, 300+v, and the program had to search all the mtrSlideTag(#)'s until both the SlideTag and the mtrSlideTag(#) matched, and retrieved all the information on that corresponding line in the slides.mtr file, what would be the best way to code it?
Any help would be appreciated. Thanks in advance!
Code:
Open App.Path & "\slides.mtr" For Input as #1
For i = 1 To J
Input #1, mtrSlideTag(i), SlideImg(i), SlideType(i), SlideVal(i), SlideSnd(i), SlideShortSnd(i)
Next
Close #1
And if I were to retrieve the SlideTag, for example, 300+v, and the program had to search all the mtrSlideTag(#)'s until both the SlideTag and the mtrSlideTag(#) matched, and retrieved all the information on that corresponding line in the slides.mtr file, what would be the best way to code it?
Any help would be appreciated. Thanks in advance!