471,355 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,355 software developers and data experts.

Global variable does not keep it's value

I have a global variable in a module declared as
Public frmcnt as integer
I have 112 window forms inheriting the default look and layout from one
standard form.
When I navigate from one form to another I increment the frmcnt to help me
keep track of my location in the program. I have stepped through the code
and it is being incremented, however somewhere along the line between the
form.show and form.load the value is getting reset back to zero.
This routine was working fine until I changed all 112 forms to inherit from
a baseline form.

Jul 21 '05 #1
0 1025

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jonathan | last post: by
11 posts views Thread by mrbog | last post: by
24 posts views Thread by LP | last post: by
9 posts views Thread by Shapper | last post: by
44 posts views Thread by fabio | last post: by
112 posts views Thread by istillshine | last post: by
4 posts views Thread by RgeeK | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.