Set Nothing

Discussion in 'ASP .Net' started by Sam, Mar 9, 2005.

  1. Sam

    Sam Guest

    Compilation Error
    Description: An error occurred during the compilation of a resource required
    to service this request. Please review the following specific error details
    and modify your source code appropriately.

    Compiler Error Message: BC30807: 'Let' and 'Set' assignment statements are
    no longer supported.

    Source Error:


    Line 39: If TextBox_Account.Text <> String.Empty Then
    Line 40:
    Line 41: Set myDataGrid = nothing
    Line 42:
    Line 43: Dim okcon As New
    SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))


    How to set object to nothing?
     
    Sam, Mar 9, 2005
    #1
    1. Advertising

  2. Sam

    bruce barker Guest

    as the message says. remove the set

    myDataGrid = nothing

    -- bruce (sqlwork.com)

    "Sam" <> wrote in message
    news:%...
    | Compilation Error
    | Description: An error occurred during the compilation of a resource
    required
    | to service this request. Please review the following specific error
    details
    | and modify your source code appropriately.
    |
    | Compiler Error Message: BC30807: 'Let' and 'Set' assignment statements are
    | no longer supported.
    |
    | Source Error:
    |
    |
    | Line 39: If TextBox_Account.Text <> String.Empty Then
    | Line 40:
    | Line 41: Set myDataGrid = nothing
    | Line 42:
    | Line 43: Dim okcon As New
    | SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
    |
    |
    | How to set object to nothing?
    |
    |
     
    bruce barker, Mar 9, 2005
    #2
    1. Advertising

  3. Hi Sam,
    Go through the error..
    It says what the problem is 'Let' and 'Set' assignment statements are no
    longer supported.!!!
    U are compiling VBscript using .Net framework!!
    What are you trying to do!!!
    Patrick


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Patrick Olurotimi Ige, Mar 9, 2005
    #3
  4. Simply remove the word "Set" to get rid of the error.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net


    "Sam" <> wrote in message
    news:%...
    > Compilation Error
    > Description: An error occurred during the compilation of a resource
    > required to service this request. Please review the following specific
    > error details and modify your source code appropriately.
    >
    > Compiler Error Message: BC30807: 'Let' and 'Set' assignment statements are
    > no longer supported.
    >
    > Source Error:
    >
    >
    > Line 39: If TextBox_Account.Text <> String.Empty Then
    > Line 40:
    > Line 41: Set myDataGrid = nothing
    > Line 42:
    > Line 43: Dim okcon As New
    > SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
    >
    >
    > How to set object to nothing?
    >
     
    Steve C. Orr [MVP, MCSD], Mar 9, 2005
    #4
  5. My, aren't we excitable.

    "Patrick Olurotimi Ige" <> wrote in message
    news:...
    > Hi Sam,
    > Go through the error..
    > It says what the problem is 'Let' and 'Set' assignment statements are no
    > longer supported.!!!
    > U are compiling VBscript using .Net framework!!
    > What are you trying to do!!!
    > Patrick
     
    Ken Cox [Microsoft MVP], Mar 9, 2005
    #5
  6. Patrick Olurotimi Ige, Mar 9, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Rodrigues

    Re: Session variables set to nothing??

    Mark Rodrigues, Oct 29, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    401
    Mark Rodrigues
    Oct 29, 2003
  2. Thanks
    Replies:
    2
    Views:
    1,723
    Thanks
    Feb 8, 2004
  3. Jie
    Replies:
    1
    Views:
    662
  4. Jeff Carver
    Replies:
    3
    Views:
    475
    Jeff Carver
    Aug 25, 2004
  5. Devin Jeanpierre
    Replies:
    2
    Views:
    535
    Devin Jeanpierre
    Feb 14, 2012
Loading...

Share This Page