HEELPBOOK - Visual Basic 6 - How to declare Public variable in a Project (Single Form) ############################################## The keyword 'dim' declares variables and depending on where it is declared, its scope changes. If you do: Dim abcde as Integer inside a procedure, the variable's value can only be modified/accessed when inside that procedure. The same statement if made in the 'declarations' area (at the absolute top of the project) of the form code will make the variable accessible and modifiable by all procedures in that form, but not by the other forms. The declaration of a public variable in a project you will have to write something like this: Public {variable_name} as {variable_type} Public intInteger1 as Integer Public strStriung1 as String ############ ARTICLE INFO ############# Article Month: July Article Date: 13/07/2012 Permalink: http://heelpbook.altervista.org/2012/visual-basic-6-how-to-declare-public-variable-in-a-project-single-form/ Source: http://en.allexperts.com/q/Visual-Basic-1048/Public-Variables.htm Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook Follow us on Delicious: http://delicious.com/heelpbook