String or Numeric Variable?
- From: "ProfitMaxTrading.com" <nospam@xxxxxxxxxx>
- Date: Fri, 28 Oct 2005 12:16:54 -0500
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
.
- Prev by Date: Export a function from a bas module in an activex dll
- Next by Date: Re: String or Numeric Variable?
- Previous by thread: Export a function from a bas module in an activex dll
- Next by thread: Re: String or Numeric Variable?
- Index(es):
Relevant Pages
|