Results 1 to 8 of 8

Thread: Variables declarations: What's the difference? (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Addicted Member AlvaroF1's Avatar
    Join Date
    Sep 2002
    Location
    SP - Brazil
    Posts
    200

    Question Variables declarations: What's the difference? (RESOLVED)

    What's the difference between it:

    VB Code:
    1. Public Class Form1
    2.     Inherits System.Windows.Forms.Form
    3.     Dim myVar As String = "Some text" 'Variable declaration here
    4.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    5.         MsgBox(myVar)
    6.     End Sub
    7. End Class
    And it:

    VB Code:
    1. Public Class Form1
    2.     Inherits System.Windows.Forms.Form
    3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    4.         Dim myVar As String = "Some text" 'Variable declaration here
    5.         MsgBox(myVar)
    6.     End Sub
    7. End Class
    ?

    Thanks.
    Last edited by AlvaroF1; Aug 20th, 2003 at 08:01 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width