Form-level variable

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

    Form-level variable

    i am in an intro class and we are making a simple hangman game. I got stuck on step 14, this is what a few of the steps said to do.

    14: Declare a form-level variable named strLetterGuesse d as type String.
    15: Add code to the btnGuessL_Click event procedure to set the value of strLetterGuesse d to the value in txtLetter.
    16: Test your code.

    I know the code should look something like

    Declare strLetterGuesse d As String

    and then under the Click event i should have something like

    Set strLetterGuesse d = txtLetter

    Where do i actually put the "Declare strLetter.. " statement?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    you need to use DIM instead of DECLARE keyword.

    Comment

    Working...