vbMarkO
Well-known member
- Joined
- Aug 19, 2005
- Messages
- 157
Ok,
Here is a textfile a part of a Bible section to show as an example how this looks in my text file...
I need to read the line I choose based on the scripture address I suppose some how I would use the : as delimeters truthfully not sure how to tackle this one
TEXTFILE looks like this
So How can I get it to loop through find the Book then search through the following chapters and verses to bring up the specifc line the user has asked for
vbMarkO
Here is a textfile a part of a Bible section to show as an example how this looks in my text file...
I need to read the line I choose based on the scripture address I suppose some how I would use the : as delimeters truthfully not sure how to tackle this one
TEXTFILE looks like this
Code:
USING VB CODE WINDOW TO MAKE THIS LOOK CLEANER FOR BETTER ILLUSTRATION
ST. MATTHEW
1:1: The book of the generation of Jesus Christ, the son of David, the son of Abraham.
1:2: Abraham begat Isaac; and Isaac begat Jacob; and Jacob begat Judas and his brethren;
1:3: And Judas begat Phares and Zara of Thamar; and Phares begat Esrom; and Esrom begat Aram;
1:4: And Aram begat Aminadab; and Aminadab begat Naasson; and Naasson begat Salmon;
1:5: And Salmon begat Booz of Rachab; and Booz begat Obed of Ruth; and Obed begat Jesse;
1:6: And Jesse begat David the king; and David the king begat Solomon of her that had been the wife of Urias;
1:7: And Solomon begat Roboam; and Roboam begat Abia; and Abia begat Asa;
1:8: And Asa begat Josaphat; and Josaphat begat Joram; and Joram begat Ozias;
1:9: And Ozias begat Joatham; and Joatham begat Achaz; and Achaz begat Ezekias;
1:10: And Ezekias begat Manasses; and Manasses begat Amon; and Amon begat Josias;
ST.MARK
1:1: The beginning of the gospel of Jesus Christ, the Son of God;
1:2: As it is written in the prophets, Behold, I send my messenger before thy face, which shall prepare thy way before thee.
1:3: The voice of one crying in the wilderness, Prepare ye the way of the Lord, make his paths straight.
1:4: John did baptize in the wilderness, and preach the baptism of repentance for the remission of sins.
1:5: And there went out unto him all the land of Judaea, and they of Jerusalem, and were all baptized of him in the river of Jordan, confessing their sins.
1:6: And John was clothed with camels hair, and with a girdle of a skin about his loins; and he did eat locusts and wild honey;
1:7: And preached, saying, There cometh one mightier than I after me, the latchet of whose shoes I am not worthy to stoop down and unloose.
1:8: I indeed have baptized you with water: but he shall baptize you with the Holy Ghost.
1:9: And it came to pass in those days, that Jesus came from Nazareth of Galilee, and was baptized of John in Jordan.
///// NOTE: As you can see above each time it comes to a New Book ie St. Matthew or St. Mark should one of these for
example is what the users is wanting to search for then it should only search for the IndexOf Chapter number and Verse
Number ie; 1:8: within the chapter and verses imediately following the book requested.
I am stumped on this one... I figured out how I could add each line to an arrayList then use IndexOf BUT I cant figure out
how to make it search for chapter and verse within chapter and verse numbers for just that particular BOOK
So How can I get it to loop through find the Book then search through the following chapters and verses to bring up the specifc line the user has asked for
vbMarkO
Last edited by a moderator: