about integer counts

Joined
Jan 24, 2005
Messages
10
Programming Experience
Beginner
im having a trouble using integer count, i wanna make a coding where i hit a summary button it shows how many deposits, checks n service charges i have made and those numbers are displayed in text boxes which i have defined as module integers, here is what i got and well when i hit the summary button after i enter an amount for deposit n i want it to show i made one deposit nothin appears in the text box so heres what i got so far

'Display the total number of deposits, checks and service charges
If radDeposit.Checked = True Then
mintTotalDeposits += 1
ElseIf radCheck.Checked = True Then
mintTotalChecks += 1
ElseIf radServiceCharge.Checked = True Then
mintTotalServiceCharges += 1
End If

if someone could help me out id appreciate it
 

TPM

Well-known member
Joined
Dec 7, 2004
Messages
623
Location
CA
Programming Experience
3-5
Set the text value of your textbox's. ie textboxTotalDeposits.text=minttotaldeposits

TPM
 

malitice

Active member
Joined
Feb 20, 2005
Messages
41
Programming Experience
1-3
VB.NET:
  'Display the total number of deposits, checks and service charges 
        If radDeposit.Checked = True Then 
            mintTotalDeposits.text += 1 
        ElseIf radCheck.Checked = True Then 
            mintTotalChecks.text  += 1 
        ElseIf radServiceCharge.Checked = True Then 
            mintTotalServiceCharges.text  += 1 
        End If

Since you are using textboxes to hold the information, you have to include the ".text"
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
actually option strict should be turned on meaning you'd use:
txtTotalDeposits.text=mintTotalDeposits.ToString
 
Top Bottom