I have an upcoming exam and I don't have access to my professor and I have questions that the book is not clarifying for me. The book that the class is using is Murach's Visual Basic 2008.
iI will list the questions will by numbers. I understand that there are alot of questions here but I really need a good grade on this exam and these are the areas that I am still unsure of. Some of the questions, I have tried to answer and I posted a comment in (), it my guess is correct could you annotate so. If not could you help me get on base.
I am taking the exam tomorrow at 11. I have been buried in this book for a couple of days now and I need help. I am using this site as a last resort. I figured individuals on here are much more proficient than myself so I mine as well ask the experts.
I want to thank anyone in advance that is willing to answer any of these questions for me. God Bless and Happy Veterans Day. I myself am an "Iraq Veteran" in 2003.2. How to code and call procedures/functions?
- What is the difference between a function and a sub procedure?
- I understand that a sub procedure doesn't return any data and a function returns a value.
-What does a value mean?
- how to code sub procedures?
- I understand based on the book how to code a sub procedure.
- how to call sub procedures?
- I understand based on the book how to call a sub procedure.
- What I dont understand nor does it show is the two together in code.
Are you able to put the two together and if so what does it look like? The book gives me these
examples for each. Can you put the two together and define it for me?
Procedure with two parameters:
Private Sub GetDiscountPercent (ByVal subtotal As Decimal, ByRef discountPercent As Decimal)
If subtotal >= 500 Then
discountPercent = .2m
discountPercent = .1
A statement that passes two arguments
Me.GetDiscountPercent (subtotal, discountPercent)