Click here to Skip to main content
15,888,177 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Error : Property is readonly Pin
Eddy Vluggen8-Apr-14 8:01
professionalEddy Vluggen8-Apr-14 8:01 
QuestionCalculations Help! Pin
Member 107286676-Apr-14 8:33
Member 107286676-Apr-14 8:33 
AnswerRe: Calculations Help! Pin
Dave Kreskowiak6-Apr-14 8:37
mveDave Kreskowiak6-Apr-14 8:37 
GeneralRe: Calculations Help! Pin
Member 107286676-Apr-14 8:48
Member 107286676-Apr-14 8:48 
GeneralRe: Calculations Help! Pin
Member 107286676-Apr-14 8:49
Member 107286676-Apr-14 8:49 
GeneralRe: Calculations Help! Pin
Member 107286676-Apr-14 8:50
Member 107286676-Apr-14 8:50 
GeneralRe: Calculations Help! Pin
Mycroft Holmes6-Apr-14 12:55
professionalMycroft Holmes6-Apr-14 12:55 
GeneralRe: Calculations Help! Pin
Eddy Vluggen7-Apr-14 7:46
professionalEddy Vluggen7-Apr-14 7:46 
Another day, another hint.
VB
If x < 1000 Then
  If x < 800 Then
    If x > 2000 Then
      ' when does this line get evaluated?
      ' A: if x < 1000 AND x < 800 AND x > 2000
    End If 
  End If
End If
Find me a number smaller than 1000, but larger than 2000.

There's another problem, take a look at the example-rules;
Member 10728667 wrote:
Commercial <= 1,000 $0.50 per unit
Commercial 1,000 < $0.50 per unit
If think the first price is for commercial stuff if you buy 1000 items or less, and the second price would be if you buy MORE than 1000 items. That's prolly what the position of the operator should imply. Back to the code;
VB
If unitsConsumed <= 1000 Then
            costPerUnit = 0.5
            If unitsConsumed > 1000 Then

Now that I switched the operator to what it probably should be, does it help to diagnose the error?
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

AnswerRe: Calculations Help! Pin
ZurdoDev7-Apr-14 8:46
professionalZurdoDev7-Apr-14 8:46 
QuestionRefresh Devexpress Master-Detail gridcontrol Pin
dilkonika5-Apr-14 6:04
dilkonika5-Apr-14 6:04 
QuestionFree Twain for .NET Pin
dilkonika4-Apr-14 11:36
dilkonika4-Apr-14 11:36 
AnswerRe: Free Twain for .NET Pin
Richard MacCutchan4-Apr-14 23:21
mveRichard MacCutchan4-Apr-14 23:21 
QuestionAdd Multiple Records to one TextBox from SQL Pin
Dan O'Riordan2-Apr-14 23:52
Dan O'Riordan2-Apr-14 23:52 
AnswerRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 0:07
mveRichard MacCutchan3-Apr-14 0:07 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 0:15
Dan O'Riordan3-Apr-14 0:15 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 0:22
mveRichard MacCutchan3-Apr-14 0:22 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 0:26
Dan O'Riordan3-Apr-14 0:26 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 0:31
mveRichard MacCutchan3-Apr-14 0:31 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 0:38
Dan O'Riordan3-Apr-14 0:38 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard Deeming3-Apr-14 0:55
mveRichard Deeming3-Apr-14 0:55 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 1:03
Dan O'Riordan3-Apr-14 1:03 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard Deeming3-Apr-14 1:14
mveRichard Deeming3-Apr-14 1:14 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 1:23
Dan O'Riordan3-Apr-14 1:23 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 1:12
mveRichard MacCutchan3-Apr-14 1:12 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dave Kreskowiak3-Apr-14 2:24
mveDave Kreskowiak3-Apr-14 2:24 

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.