Learning a computer language is a big undertaking and cannot be explained in only one Answers.com answer, but I can post links on where to find resources to begin programing. First off google-ing...
You declare it by this: Dim var as integer or Public var as integer You can use other types instead of integer like long, double, string, byte etc. Using Public is for making a variable accessible...