|
List Info
Thread: Re: newbie
|
|
| Re: newbie |
  United States |
2007-10-01 14:42:50 |
|
Private Sub Calculate_ Click() if option_exit = vbChecked then unload me elseif option_deposit = vbChecked then 'Add amount to your total elseif option_check = vbChecked then 'Subtract amount from your total endif end sub
----- Original Message ---- From: "SLM139 aol.com" <SLM139 aol.com> To: helpwithvb yahoogroups.com Sent: Sunday, September 30, 2007 5:32:31 PM Subject: [helpwithvb] newbie
Hello I am a student taking visual basics and am having a problem
understanding how to do something. I am hoping someone can explain this to me
better than this dumb book. As this is an online class its really hard to grasp
alone.
I have created a form that is computing a checkbook balance. It has a
amount textbox where the user enters the amount of the check. then there is a
group box that has three radio buttons, deposit, check, and service charge.
there is an account balance textbox, along with three buttons, calculate, clear,
and exit.
I am suppose to use the if/then statements to write the code under the
calculate button but can't figure out how to do it with the if/then method. can
someone explain this to me better
thanks in advance
sherry
__._,_.___
.
__,_._,___
|
| Re: newbie |
  United States |
2007-10-01 15:14:24 |
|
Thanks Steve I will see if this will work.
Sherry in TN
Embroidery and Grandkids..my favorite things
-----Original Message-----
From: Steve Trigero <seecwriter yahoo.com>
To: helpwithvb yahoogroups.com
Sent: Mon, 1 Oct 2007 2:42 pm
Subject: Re: [helpwithvb] newbie
Private Sub Calculate_ Click()
if option_exit = vbChecked then
unload me
elseif option_deposit = vbChecked then
'Add amount to your total
elseif option_check = vbChecked then
'Subtract amount from your total
endif
end sub
----- Original Message ----
Fro m: "SLM139 aol.com" < SLM139 aol.com">SLM139 aol.com>
To: helpwithvb yahoogroups.com
Sent: Sunday, September 30, 2007 5:32:31 PM
Subject: [helpwithvb] newbie
Hello I am a student taking visual basics and am having a problem understanding how to do something. I am hoping someone can explain this to me better than this dumb book. As this is an online class its really hard to grasp alone.
I have created a form that is computing a checkbook balance. It has a amount textbox where the user enters the amount of the check. then there is a group box that has three radio buttons, deposit, check, and service charge. there is an account balance textbox, along with three buttons, calculate, clear, and exit.
I am suppose to use the if/then statements to write the code under the calculate button but can't figure out how to do it with the if/then method. can someone explain this to me better
thanks in advance
sherry
__._,_.___
|
| Re: newbie |
  United States |
2007-10-01 15:30:35 |
|
Here is what my project has so far for code. We were told to put the if/then calculation under the calculate button.
My form has:
enterAmtLabel
amountTextBox
depositRadioButton
checkRadioButton
serviceChargeRadioButton
accountBalanceLabel
accountBalanceTextBox
calculateButton
clearButton
exitButton
Public Class Form1
'Project: Checking Account
'Programmer: Sherry Mantooth
'Date: 9/30/07
'Description: This project will compute your checking account balance.
'Dimension module-level variables
Private AccountBalanceDecimal As Decimal
Private Sub calculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculateButton.Click
'Calculate the account balance
Dim amountTextBox As Decimal
Dim depositButtonDecimal As Decimal
Dim checkButtonDecimal As Decimal
Dim ServiceChgButtonDecimal As Decimal
Try
If (depositRadioButton = True) Then
AccountBalanceDecimal = here is what I am not sure what to put. I have to take the balance and add the deposit amount to calculate and show a new balance in the accountBalanceTextbox. Don't I have to list the check radio button and the service charge radio button and show them as false?
End If
Catch ex As Exception
End Try
End Sub
End Class
Sherry in TN
Embroidery and Grandkids..my favorite things
-----Original Message-----
From: Steve Trigero <seecwriter yahoo.com>
To: helpwithvb yahoogroups.com
Sent: Mon, 1 Oct 2007 2:42 pm
Subject: Re: [helpwithvb] newbie
Private Sub Calculate_ Click()
if option_exit = vbChecked then
unload me
elseif option_deposit = vbChecked then
'Add amount to your total
elseif option_check = vbChecked then
'Subtract amount from your total
endif
end sub
----- Original Message ----
Fro m: "SLM139 aol.com" < SLM139 aol.com">SLM139 aol.com>
To: helpwithvb yahoogroups.com
Sent: Sunday, September 30, 2007 5:32:31 PM
Subject: [helpwithvb] newbie
Hello I am a student taking visual basics and am having a problem understanding how to do something. I am hoping someone can explain this to me better than this dumb book. As this is an online class its really hard to grasp alone.
I have created a form that is computing a checkbook balance. It has a amount textbox where the user enters the amount of the check. then there is a group box that has three radio buttons, deposit, check, and service charge. there is an account balance textbox, along with three buttons, calculate, clear, and exit.
I am suppose to use the if/then statements to write the code under the calculate button but can't figure out how to do it with the if/then method. can someone explain this to me better
thanks in advance
sherry
__._,_.___
.
__,_._,___
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|