|
-
Feb 26th, 2008, 11:22 PM
#1
Thread Starter
Junior Member
Coding Problem
I am making a code to calculate the total change from cash entered when I click the calculate button, I also need the number of 20s and 10 and 5s given back put in the label next to the corresponding number.
My code looks like
Private Sub btnCalculate_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnCalculate.Click
'declare local variables
Dim lblTwenty As Integer
End Sub
But it says intTwenty is an undeclared local variable when I named the label box next to 20 "lblTwenty"???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|