Set Nothing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sam

    Set Nothing

    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(C onfigurationSet tings.AppSettin gs("ConnectionS tring"))


    How to set object to nothing?


  • bruce barker

    #2
    Re: Set Nothing

    as the message says. remove the set

    myDataGrid = nothing

    -- bruce (sqlwork.com)

    "Sam" <cybersam88@hot mail.com> wrote in message
    news:%23EfKzJEJ FHA.1528@TK2MSF TNGP09.phx.gbl. ..
    | 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(C onfigurationSet tings.AppSettin gs("ConnectionS tring"))
    |
    |
    | How to set object to nothing?
    |
    |


    Comment

    • Patrick Olurotimi Ige

      #3
      Re: Set Nothing

      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!

      Comment

      • Steve C. Orr [MVP, MCSD]

        #4
        Re: Set Nothing

        Simply remove the word "Set" to get rid of the error.

        --
        I hope this helps,
        Steve C. Orr, MCSD, MVP



        "Sam" <cybersam88@hot mail.com> wrote in message
        news:%23EfKzJEJ FHA.1528@TK2MSF TNGP09.phx.gbl. ..[color=blue]
        > 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(C onfigurationSet tings.AppSettin gs("ConnectionS tring"))
        >
        >
        > How to set object to nothing?
        >[/color]


        Comment

        • Ken Cox [Microsoft MVP]

          #5
          Re: Set Nothing

          My, aren't we excitable.

          "Patrick Olurotimi Ige" <ige@iprimus.co m.au> wrote in message
          news:uktjpZEJFH A.2132@TK2MSFTN GP14.phx.gbl...[color=blue]
          > 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[/color]

          Comment

          • Patrick Olurotimi Ige

            #6
            Re: Set Nothing

            Yes we are Ken:)



            *** Sent via Developersdex http://www.developersdex.com ***
            Don't just participate in USENET...get rewarded for it!

            Comment

            Working...