View Single Post
Old Jul 21st, 2007, 4:25 AM   #1
sharkbate24
Newbie
 
Join Date: Jul 2007
Posts: 1
Rep Power: 0 sharkbate24 is on a distinguished road
Declaring a Public Variable?

Hello everyone ,

I need some help. I tried searching google for this, but still no luck, so I thought I'd ask you for help. In the source code, I put in:

Dim a As Integer
Dim b As Integer
a = 500
b = 100

And in a button code, I put in:

a = a-b

But when I try to compile it, it says "a and b not defined." So I think I must need to declare the variable as Public, but I don't know how, so I thought you guys could help me :banana:.

Thanks guys.
sharkbate24 is offline   Reply With Quote