By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,476 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

about global variable

P: 1
i want to know about declaration of global variable
Dec 14 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 274
You can add a module in your project and then declare variables there
like this

Public Orders As New ADODB.Recordset
Public cat As String
Public Qty As Long

These variable are global
Dec 14 '07 #2

debasisdas
Expert 5K+
P: 8,127
You need to declare public variables in the module (.BAS file).
Dec 14 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.