List Info

Thread: Re: newbie




Re: newbie
country flaguser name
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: "SLM139aol.com" <SLM139aol.com>;
To: helpwithvbyahoogroups.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.
&nbsp;
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



See what's new at AOL.com and Make AOL Your Homepage.

__._,_.___
.

__,_._,___
Re: newbie
country flaguser name
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 <seecwriteryahoo.com>
To: helpwithvbyahoogroups.com
Sent: Mon, 1 Oct 2007 2:42 pm
Subject: Re: [helpwithvb] newbie

Private Sub Calculate_Click()
  if option_exit = vbChecked then
&nbsp; &nbsp; unload me
 ; elseif&nbsp; option_deposit = vbChecked then
&nbsp; &nbsp;  'Add amount to your total
&nbsp; elseif option_check = vbChecked then
&nbsp; &nbsp; 'Subtract amount from your total
&nbsp; endif
end sub

----- Original Message ----
From: "SLM139aol.com" < SLM139aol.com">SLM139aol.com&gt;
To: helpwithvbyahoogroups.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



See what's new at AOL.com and Make AOL Your Homepage.


Email and AIM finally together. You've gotta check out free AOL Mail!

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Need traffic?

Drive customers

With search ads

on Yahoo!

Cat Groups

on Yahoo! Groups

Share pictures &

stories about cats.

Yoga Resources

on Yahoo! Groups

Take the stress

out of your life.

Re: newbie
country flaguser name
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
&nbsp; &nbsp; 'Project:&nbsp;   ; &nbsp; Checking Account
  ;  'Programmer: &nbsp;  Sherry Mantooth
 &nbsp;  'Date:&nbsp; &nbsp; &nbsp; &nbsp;   9/30/07
  ;  'Description: &nbsp; This project will compute your checking account balance.
 ;
&nbsp; &nbsp; 'Dimension module-level variables
 &nbsp;  Private AccountBalanceDecimal As Decimal
 

  ;  Private Sub calculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculateButton.Click
 &nbsp;   ; &nbsp; 'Calculate the account balance
  ; &nbsp; &nbsp;  Dim amountTextBox As Decimal
  ; &nbsp; &nbsp;  Dim depositButtonDecimal As Decimal
  ; &nbsp; &nbsp;  Dim checkButtonDecimal As Decimal
  ; &nbsp; &nbsp;  Dim ServiceChgButtonDecimal As Decimal
 
&nbsp; &nbsp; &nbsp;   Try
&nbsp; &nbsp; &nbsp; &nbsp;   ;  If (depositRadioButton = True) Then
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  AccountBalanceDecimal = &nbsp;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?
   ; &nbsp; &nbsp; &nbsp; &nbsp; 
 &nbsp; &nbsp;   ; &nbsp; &nbsp; End If
 ; &nbsp; &nbsp; &nbsp; Catch ex As Exception
&nbsp;
&nbsp;   ; &nbsp;  End Try
 

&nbsp; &nbsp; End Sub
End Class




Sherry in TN
Embroidery and Grandkids..my favorite things


-----Original Message-----
From: Steve Trigero <seecwriteryahoo.com>
To: helpwithvbyahoogroups.com
Sent: Mon, 1 Oct 2007 2:42 pm
Subject: Re: [helpwithvb] newbie

Private Sub Calculate_Click()
  if option_exit = vbChecked then
&nbsp; &nbsp; unload me
 ; elseif&nbsp; option_deposit = vbChecked then
&nbsp; &nbsp;  'Add amount to your total
&nbsp; elseif option_check = vbChecked then
&nbsp; &nbsp; 'Subtract amount from your total
&nbsp; endif
end sub

----- Original Message ----
From: "SLM139aol.com" < SLM139aol.com">SLM139aol.com&gt;
To: helpwithvbyahoogroups.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



See what's new at AOL.com and Make AOL Your Homepage.


Email and AIM finally together. You've gotta check out free AOL Mail!

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )