Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

Question About UBound and Look Up?

$
0
0
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:

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

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!

Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>