Click here to Skip to main content
15,915,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProblem creating ForeignKey between DataTables Pin
carrigart6-Jun-09 2:50
carrigart6-Jun-09 2:50 
AnswerRe: Problem creating ForeignKey between DataTables Pin
Dave Kreskowiak6-Jun-09 4:46
mveDave Kreskowiak6-Jun-09 4:46 
GeneralRe: Problem creating ForeignKey between DataTables Pin
carrigart6-Jun-09 4:50
carrigart6-Jun-09 4:50 
GeneralRe: Problem creating ForeignKey between DataTables Pin
Henry Minute6-Jun-09 9:41
Henry Minute6-Jun-09 9:41 
GeneralRe: Problem creating ForeignKey between DataTables Pin
Dave Kreskowiak6-Jun-09 9:52
mveDave Kreskowiak6-Jun-09 9:52 
QuestionCalculator Pin
keymoney6-Jun-09 2:41
keymoney6-Jun-09 2:41 
AnswerRe: Calculator Pin
Dave Kreskowiak6-Jun-09 4:44
mveDave Kreskowiak6-Jun-09 4:44 
AnswerRe: Calculator Pin
molesworth6-Jun-09 7:28
molesworth6-Jun-09 7:28 
WTF | :WTF:

keymoney wrote:
...it only adds correctly the first time...


Are you sure?

Trying to follow your logic, enter 15, press add, result now equals 30, display cleared. Enter 6, press equals, display shows 30, instead of 21, the actual sum. (Or at least I think it does - just reading it makes my head hurt...)

Your logic is, for want of a better word, insane.
total1 = Val(txtdisplay.Text)

total1 = total1 + Val(txtdisplay.Text)

total2 = total1

result = total2

What, exactly, do you think that code does? You need to step through in debug mode, looking at the values of the variables you're setting. Then, as Dave K. above suggests, throw it away and start again...

There are three kinds of people in the world - those who can count and those who can't...

QuestionPopulate a Treeview Pin
wr30286-Jun-09 1:36
wr30286-Jun-09 1:36 
QuestionRichTextbox Text Alignment Pin
Paramu19735-Jun-09 21:01
Paramu19735-Jun-09 21:01 
AnswerRe: RichTextbox Text Alignment Pin
Dave Kreskowiak6-Jun-09 4:40
mveDave Kreskowiak6-Jun-09 4:40 
QuestionSending SMS Software. Pin
Anubhava Dimri5-Jun-09 19:52
Anubhava Dimri5-Jun-09 19:52 
AnswerRe: Sending SMS Software. Pin
Christian Graus5-Jun-09 20:14
protectorChristian Graus5-Jun-09 20:14 
GeneralRe: Sending SMS Software. Pin
Anubhava Dimri5-Jun-09 21:02
Anubhava Dimri5-Jun-09 21:02 
GeneralRe: Sending SMS Software. Pin
Christian Graus5-Jun-09 21:57
protectorChristian Graus5-Jun-09 21:57 
AnswerRe: Sending SMS Software. Pin
ThatsAlok5-Jun-09 20:25
ThatsAlok5-Jun-09 20:25 
GeneralRe: Sending SMS Software. Pin
Anubhava Dimri5-Jun-09 21:06
Anubhava Dimri5-Jun-09 21:06 
GeneralRe: Sending SMS Software. Pin
EliottA6-Jun-09 13:17
EliottA6-Jun-09 13:17 
GeneralRe: Sending SMS Software. Pin
Anubhava Dimri7-Jun-09 18:15
Anubhava Dimri7-Jun-09 18:15 
QuestionShowing the Common properties for the Multiple Controls selection Pin
VB 8.05-Jun-09 18:47
VB 8.05-Jun-09 18:47 
AnswerRe: Showing the Common properties for the Multiple Controls selection Pin
Dave Kreskowiak6-Jun-09 4:39
mveDave Kreskowiak6-Jun-09 4:39 
QuestionHow to Retrieve data from a boumd Datalist column [modified] Pin
MacIntyre5-Jun-09 6:34
MacIntyre5-Jun-09 6:34 
AnswerRe: How to Retrieve data from a boumd Datalist column Pin
Henry Minute5-Jun-09 10:27
Henry Minute5-Jun-09 10:27 
GeneralRe: How to Retrieve data from a boumd Datalist column Pin
MacIntyre5-Jun-09 10:34
MacIntyre5-Jun-09 10:34 
GeneralRe: How to Retrieve data from a boumd Datalist column Pin
Henry Minute5-Jun-09 10:39
Henry Minute5-Jun-09 10:39 

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.