I am fairly new to visual basic and have done some small programs in it. I am unsure whether I am needing to use a split, instr() or something totally different. I have searched and find many variations. However, after reading a ton of stuff it has added up to a bit of confusion.
I have a file that I am needing to find a specific string in and then return the next seven numbers after that. The file has many occurrences of the string I am searching for so I will need to put the code into a loop so that it keeps finding each occurrence.
Basically the code will search the file and find the first occurrence of this string. Then it will probably go into a select statement where a specific action will be performed. From there the code would loop around and search for the next occurrence of the string and do it all over again.
Below is an example of the string I am searching for and how the 7 numbers afterwards are arranged. The number string might be up to 9 characters long but I only need the first 7 numbers.
REF*EJ*5555555-5
Any helps or guidance is greatly appreciated.
Thanks
I have a file that I am needing to find a specific string in and then return the next seven numbers after that. The file has many occurrences of the string I am searching for so I will need to put the code into a loop so that it keeps finding each occurrence.
Basically the code will search the file and find the first occurrence of this string. Then it will probably go into a select statement where a specific action will be performed. From there the code would loop around and search for the next occurrence of the string and do it all over again.
Below is an example of the string I am searching for and how the 7 numbers afterwards are arranged. The number string might be up to 9 characters long but I only need the first 7 numbers.
REF*EJ*5555555-5
Any helps or guidance is greatly appreciated.
Thanks