String or Numeric Variable?



This is a very basic question that I was unable to find an answer for
searching Google. So forgive me for asking due to its simplicity.

As I'm looking into learning more about objects/classes to perhaps change
old bad habits in VB, one of those bad habits happens to be never asking or
reading about Strings and Numeric variables as to which is the preferred for
better coding.

In other words:

If I need to create a variable that has three possible values that are for
identification purposes only and will not need to be printed out or sent to
the screen:


Morning
Afternoon
Night

Is it best to use a variable of type string and either have it equal
"Morning", "Afternoon" or "Night" or "M", "A", "N" for example or perhaps a
numeric variable, say type BYTE and give it values of 1, 2 or 3 to mean the
same?

Which approach is best for processing speed and program size?

It's high time I start learning new habits.

TIA

Rick


.



Relevant Pages

  • Re: String or Numeric Variable?
    ... Strikes me that even as a complete beginner, ... > old bad habits in VB, one of those bad habits happens to be never asking or ... > Is it best to use a variable of type string and either have it equal ... > It's high time I start learning new habits. ...
    (comp.lang.basic.visual.misc)
  • Re: Home self learning
    ... So I don't start off by learning ... but picked up good tips and habits along the ... It teaches music reading as well, ... I like the 60 days money back guarantee and the online communication with the teacher and his students. ...
    (alt.guitar.beginner)
  • Re: Home self learning
    ... So I don't start off by learning ... but picked up good tips and habits along the ... It teaches music reading as well, ... ledger lines go, but I'm almost over the hump. ...
    (alt.guitar.beginner)
  • Re: Igowin
    ... Igowin is nice in the way it automatically ramps up. ... Acquiring bad habits when you are learning will happen no matter what. ... Now I am playing the game 9x9 with 2 handicaps. ...
    (rec.games.go)
  • Re: Igowin
    ... Igowin is nice in the way it automatically ramps up. ... Acquiring bad habits when you are learning will happen no matter what. ... Now I am playing the game 9x9 with 2 handicaps. ...
    (rec.games.go)