Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Crytal Reports Active X Designer - error Pin
Anoop Brijmohun3-Mar-08 2:14
Anoop Brijmohun3-Mar-08 2:14 
QuestionRe: Crytal Reports Active X Designer - error Pin
scaldwe26-Mar-08 9:31
scaldwe26-Mar-08 9:31 
AnswerRe: Crytal Reports Active X Designer - error Pin
Anoop Brijmohun26-Mar-08 20:00
Anoop Brijmohun26-Mar-08 20:00 
GeneralImplicit conversion error using option strict on Pin
AAGTHosting1-Mar-08 18:40
AAGTHosting1-Mar-08 18:40 
GeneralRe: Implicit conversion error using option strict on Pin
pmarfleet1-Mar-08 23:19
pmarfleet1-Mar-08 23:19 
GeneralRe: Implicit conversion error using option strict on Pin
Guffa2-Mar-08 1:00
Guffa2-Mar-08 1:00 
QuestionCoding nested Conditional Statements Pin
IvanIT1-Mar-08 15:59
IvanIT1-Mar-08 15:59 
GeneralRe: Coding nested Conditional Statements Pin
Dave Kreskowiak3-Mar-08 3:56
mveDave Kreskowiak3-Mar-08 3:56 
Well, I wouldn't really use hard-coded strings to check for Exemption status. It's not culturally independant. I'd use some other data type to represent status information in the schema.

You've already got the logic layed out in your post, but it's messed up. You've got conflicting expressions for the same condition. I think I've fixed it, but it's your requirements, so double check the logic.

Also, to keep it simple, I'd avoid using ElseIf statements until you're more proficient at this.

These are your (fixed) requirements. You should be able to easily code the If block using this:
If my ExemptStatus = "Exempt" then
 
        the text box txtCTOused1.Text should be disabled,
 
        If TotalWeek1 <= workWeek1, then
 
            CompTime1 = 0
 
        Else
 
           ' TotalWeek1 > workWeek1
             CompTime1 = (TotalWeek1 - WorkWeek1) * 1.5
 
End If
 
If ExemptStatus = "NonExempt", then
 
    text box txtCTOused1.Text should be Enabled,




A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralCombobox control Pin
manisghouri1-Mar-08 13:03
manisghouri1-Mar-08 13:03 
GeneralRe: Combobox control Pin
Christian Graus1-Mar-08 13:42
protectorChristian Graus1-Mar-08 13:42 
Questionproblem during report genration Pin
yogesh_kumar_agarwal1-Mar-08 0:57
yogesh_kumar_agarwal1-Mar-08 0:57 
GeneralPrinting support on hp laserjet 1010 in vb6 Pin
r_mohd29-Feb-08 23:52
r_mohd29-Feb-08 23:52 
GeneralRe: Printing support on hp laserjet 1010 in vb6 Pin
yogesh_kumar_agarwal29-Feb-08 23:57
yogesh_kumar_agarwal29-Feb-08 23:57 
GeneralRe: Printing support on hp laserjet 1010 in vb6 Pin
r_mohd1-Mar-08 18:38
r_mohd1-Mar-08 18:38 
GeneralTable in richtextbox Pin
helelark12329-Feb-08 23:23
helelark12329-Feb-08 23:23 
GeneralRe: Table in richtextbox Pin
Xmen Real 1-Mar-08 2:37
professional Xmen Real 1-Mar-08 2:37 
Questionhow can i handle a datagridview in vb.net Pin
r_mohd29-Feb-08 21:09
r_mohd29-Feb-08 21:09 
AnswerRe: how can i handle a datagridview in vb.net Pin
Christian Graus29-Feb-08 21:45
protectorChristian Graus29-Feb-08 21:45 
AnswerRe: how can i handle a datagridview in vb.net Pin
yogesh_kumar_agarwal29-Feb-08 21:49
yogesh_kumar_agarwal29-Feb-08 21:49 
GeneralRe: how can i handle a datagridview in vb.net Pin
r_mohd29-Feb-08 22:36
r_mohd29-Feb-08 22:36 
GeneralRe: how can i handle a datagridview in vb.net Pin
yogesh_kumar_agarwal29-Feb-08 22:51
yogesh_kumar_agarwal29-Feb-08 22:51 
QuestionManage MDI childs Pin
highjo29-Feb-08 12:27
highjo29-Feb-08 12:27 
GeneralRe: Manage MDI childs Pin
J$29-Feb-08 13:16
J$29-Feb-08 13:16 
GeneralRe: Manage MDI childs Pin
yogesh_kumar_agarwal29-Feb-08 17:21
yogesh_kumar_agarwal29-Feb-08 17:21 
GeneralRe: Manage MDI childs Pin
darkelv29-Feb-08 17:59
darkelv29-Feb-08 17:59 

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.