form level variables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clundry
    New Member
    • Sep 2008
    • 1

    form level variables

    I am in a logic and programming class and we are creating a hangman game. We have a list of steps and instructions, but either I'm an idiot or something else is going on! It is asking me to declare a form-level variable named strLetterGuesse d as type String. I have a hint that says to add "Public strLetterGuesse d as String"
    How do I even declare aform level variable anyway? I have tried using Dim, Public and Private Sub all of which pop up their own error messages. After I enter this I am supposed to test and I can't turn it in not running. HELP!
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Originally posted by clundry
    How do I even declare aform level variable anyway?
    Hi,

    Write This at the Top of the Form (Code editor)
    After Option Explicit:

    [code=vb]
    Option Explicit
    Public strLetterGuesse d as String
    [/code]

    Regards
    Veena

    Comment

    Working...