Solved

See Global Varible in

Posted on 2002-03-17
5
255 Views
Last Modified: 2010-05-02
Hi Experts

How can i see (if i can) the Global Varible (All) thet in the project with "Watch Windows".
My problem that i don't know the names of all varible,
and i want to know all varible in project scope.

thanks.

alon.
0
Comment
Question by:Alon10009
  • 3
5 Comments
 
LVL 2

Expert Comment

by:nahumd
ID: 6876105
You can use the "object browser" to see that.
Pause the program, go to the visual basic environment, press right click and choose the object browser.
there you have all the global parameters, and additional things as well.
0
 
LVL 2

Expert Comment

by:nahumd
ID: 6876108
p.s.
you have all the global variables definitions there, but not their values.
Find out which variable you are looking for, press right click and choose "view definition", and then you can choose to add it to the watch window.
0
 

Author Comment

by:Alon10009
ID: 6876138
Yep, thanks But...

i have classes, and i want to see with "Watch Windows" like i can see all the forms, if a put 'Forms' in "Watch Windows" with the right Contect (All Modules), (All Procedures).
0
 
LVL 2

Accepted Solution

by:
nahumd earned 300 total points
ID: 6876152
The 'Forms' shows you the forms collection.
The forms collection is a collection that is maintained automatically by VB behind the scenes. If you want a similar collection to your classes and global variables, you will have to do it manually.
I dont know about a similar auto-updated collection that holds the global variables.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6876425
give a try to the Locals window (from the View menu).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 49
Paint/Redraw window while dragging 16 68
Reading the Contents of a Directory In Access VBA 5 58
Set email body to html using vbscript 6 24
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now