Dear all,
I’m very new to VB and without much experience in programming. Any advice or direction would be helpful to me.
I’m writing a programme that, when I get a certain integer value from a message, I have to return a string of characters. Sounds simple if there is only a handful of integers, I could get away with few IF statements. BUT, such is life, there is a very large number of possible values.
My guess is that, if I have a separate file to store the corresponding characters, I could change the characters easily, and the programme itself could be smaller.
My questions are:
*What would be the best type of file to store the ‘lookup table’?
*How could I access the file quickly and search for corresponding characters?
*How do I read just one line of the file and not more?
I would greatly appreciate if anyone could give me any advice or example links.
Thanks in advance
Thomson
I’m very new to VB and without much experience in programming. Any advice or direction would be helpful to me.
I’m writing a programme that, when I get a certain integer value from a message, I have to return a string of characters. Sounds simple if there is only a handful of integers, I could get away with few IF statements. BUT, such is life, there is a very large number of possible values.
My guess is that, if I have a separate file to store the corresponding characters, I could change the characters easily, and the programme itself could be smaller.
My questions are:
*What would be the best type of file to store the ‘lookup table’?
*How could I access the file quickly and search for corresponding characters?
*How do I read just one line of the file and not more?
I would greatly appreciate if anyone could give me any advice or example links.
Thanks in advance
Thomson