0

I'm wondering whether it is possible to declare a global variable in a click event. I need to declare an array of a specific size. The specific size is generated using a series of IF statements. I only need to know how to declare it.

Thanks in advance

I'm using 3.5 Framework Visual Studio 2008.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Luc001
0

I'm wondering whether it is possible to declare a global variable in a click event. I need to declare an array of a specific size. The specific size is generated using a series of IF statements. I only need to know how to declare it.

Thanks in advance

I'm using 3.5 Framework Visual Studio 2008.

Hi,

If you want to code in VB 2008 like it was meant to be used, check out OOP (object-oriented programming). You can achieve "global" variables without using a global variable with OOP.

Here is some information on OOP:

http://www.developerfusion.com/article/1047/new-objectoriented-capabilities-in-vbnet/2/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.