global or public variable

I also do not know how to create a public variable; can someone givwe me a good hint. :)

-Thanks

Comments

  • : I also do not know how to create a public variable; can someone givwe me a good hint. :)
    :
    : -Thanks
    :

    --
    Hi,

    Its very simple.
    just declare a variable after the WINDOWS FORM GENERATED CODE (block)
    By defaut it will become public throughout the form in which it is declared.

    or,
    if u want a variable to be public througout the project just declare the variable in the Module.

    public intCount as integer.
    this will make the variable (intcount) accessible from anywhere in the project.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion