Results 1 to 13 of 13

Thread: E-mailing in .NET ...code problem [RESOLVED]

Hybrid View

  1. #1
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Edit this code for me...

    Quote Originally Posted by jmcilhinney
    I was editing my post when MrPolite replied, and he pointed out what I was changing: All variables must be declared inside a class or module. As he said, only use "Dim" when declaring a local, or procedure-level, variable.
    actually, DONT use dim when you're declaring class level variables. It's better to define the scope (ie, use Private count As Integer if you're declaring it at the top of your form, and not Dim count...)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Edit this code for me...

    Quote Originally Posted by MrPolite
    actually, DONT use dim when you're declaring class level variables. It's better to define the scope (ie, use Private count As Integer if you're declaring it at the top of your form, and not Dim count...)
    Two things:

    1. Read my post and you'll notice that I wrote ONLY use "Dim" to decalare LOCAL variables.
    2. Using "Dim" to declare a class-level variable has the same effect as declaring it Private anyway.

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