Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Stack Overflow when adding controls across threads. Pin
Chinners31-Jan-08 0:31
Chinners31-Jan-08 0:31 
GeneralProblem with Excel Sheet name when importing using oledb Pin
RichardBerry30-Jan-08 21:28
RichardBerry30-Jan-08 21:28 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
Johan Hakkesteegt31-Jan-08 0:47
Johan Hakkesteegt31-Jan-08 0:47 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
RichardBerry31-Jan-08 3:58
RichardBerry31-Jan-08 3:58 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
Johan Hakkesteegt31-Jan-08 20:30
Johan Hakkesteegt31-Jan-08 20:30 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
RichardBerry1-Feb-08 0:50
RichardBerry1-Feb-08 0:50 
GeneralDeployment Problem Pin
SamRST30-Jan-08 21:21
SamRST30-Jan-08 21:21 
GeneralDay of the week combinations. [modified] Pin
Absenm30-Jan-08 20:45
Absenm30-Jan-08 20:45 
Greettings again;

I am working on POS software in visual basic 2005/08 and have run into a problem that I just can't seem to wrap my mind around. This POS is designed for Taverns and as thus I need to setup various happy hour specials. Right now I have a working POS setup and functioning in a very basic environment but I am not at all happy with how the happy hour routine works. Specifically how I deal with the days of the week that specials apply.

Right now for each happy hour special I have an individual variable that indicates if the special runs on that specific day. For example HHMon(x), HHTue(x), HHWed(x) etc as boolean variables. True means the special is on that day, false it is off. Some specials run on Monday and Thursday, others run one day a week, others run weekdays, so on and so on. I just feel it is such a waste and inefficient to use seven variables for each special.

So my question is, does anyone have an suggestions on how to better approach dealing with days of the week in this fashion? Could a single variable represent every possible combination of week days? Is there a built in function that would do this? I am very new to VB.NET and programming in general and I would appreciate any assistance.

Thank You,

Ryan

modified on Thursday, January 31, 2008 3:08:55 AM

GeneralRe: Day of the week combinations. Pin
Mycroft Holmes30-Jan-08 21:55
professionalMycroft Holmes30-Jan-08 21:55 
QuestionDatagridview default style getting changed changes Pin
nishkarsh_k30-Jan-08 20:36
nishkarsh_k30-Jan-08 20:36 
GeneralRe: Datagridview default style getting changed changes Pin
Dave Kreskowiak31-Jan-08 4:46
mveDave Kreskowiak31-Jan-08 4:46 
GeneralRe: Datagridview default style getting changed changes Pin
nishkarsh_k31-Jan-08 19:48
nishkarsh_k31-Jan-08 19:48 
GeneralLock Folder Pin
Kumaran21cen30-Jan-08 19:43
Kumaran21cen30-Jan-08 19:43 
GeneralRe: Lock Folder Pin
Mycroft Holmes30-Jan-08 22:00
professionalMycroft Holmes30-Jan-08 22:00 
GeneralRe: Lock Folder Pin
Steven J Jowett30-Jan-08 23:28
Steven J Jowett30-Jan-08 23:28 
GeneralRe: Lock Folder Pin
Dave Kreskowiak31-Jan-08 4:45
mveDave Kreskowiak31-Jan-08 4:45 
Generalinstantiating object returns nothing Pin
rotsey30-Jan-08 18:01
rotsey30-Jan-08 18:01 
GeneralRe: instantiating object returns nothing Pin
Justin Perez31-Jan-08 3:08
Justin Perez31-Jan-08 3:08 
QuestionHow to use Adodc In Vb.net Pin
ejaz_pk30-Jan-08 8:02
ejaz_pk30-Jan-08 8:02 
GeneralRe: How to use Adodc In Vb.net Pin
Mycroft Holmes30-Jan-08 13:18
professionalMycroft Holmes30-Jan-08 13:18 
QuestionRe: How to use Adodc In Vb.net Pin
ejaz_pk31-Jan-08 1:29
ejaz_pk31-Jan-08 1:29 
GeneralRe: How to use Adodc In Vb.net Pin
Mycroft Holmes31-Jan-08 13:12
professionalMycroft Holmes31-Jan-08 13:12 
GeneralRe: How to use Adodc In Vb.net Pin
Paul Conrad30-Jan-08 15:57
professionalPaul Conrad30-Jan-08 15:57 
QuestionInvoke Pin
Agbaria Ahmad30-Jan-08 7:15
Agbaria Ahmad30-Jan-08 7:15 
GeneralRe: Invoke Pin
Paul Conrad30-Jan-08 15:58
professionalPaul Conrad30-Jan-08 15:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.