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
 
Set the text value of your textbox's. ie textboxTotalDeposits.text=minttotaldeposits

TPM
 
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"
 
actually option strict should be turned on meaning you'd use:
txtTotalDeposits.text=mintTotalDeposits.ToString
 
Back
Top