473,378 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Set Nothing

Sam
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("C onnectionString"))
How to set object to nothing?
Nov 19 '05 #1
5 4329
as the message says. remove the set

myDataGrid = nothing

-- bruce (sqlwork.com)

"Sam" <cy********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.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(ConfigurationSettings.AppSettings("C onnectionString"))
|
|
| How to set object to nothing?
|
|
Nov 19 '05 #2
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!
Nov 19 '05 #3
Simply remove the word "Set" to get rid of the error.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Sam" <cy********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.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(ConfigurationSettings.AppSettings("C onnectionString"))
How to set object to nothing?

Nov 19 '05 #4
My, aren't we excitable.

"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:uk**************@TK2MSFTNGP14.phx.gbl...
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


Nov 19 '05 #5
Yes we are Ken:)

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

96
by: BadPony | last post by:
Anyone using Peoplesoft on a Federated UDB (shared nothing)Environment on Open System Platforms? Preferably AIX, but any war stories would be good. TEA EB-C
24
by: Hardy | last post by:
I'm pretty new in this field. when reading some 70x material, I met with this term but cannot catch its accurate meaning. who can help me? thanks in advance:)~
6
by: Bob Day | last post by:
VS 2003 The documentation says " Nothing keyword represents the default value of any data type" this is simply not true and causing a lot of problems. 1) Consider an SQL table of 3 columns: ...
26
by: Bob Day | last post by:
VS 2003, vb.net, sql native (MSDE)... I have railed against the inconsistency of the Nothing key word. The documentation says is will assign a default value for any datatype...well, not...
4
by: David Schwartz | last post by:
Seems that setting an object = Nothing no longer does anything in .NET. Garbage collection destroys the object eventually. So, does it ever make sense to set an object = Nothing in .NET? Thanks.
5
by: John A Grandy | last post by:
do these mean the same thing ? Dim s As String ..... If s Is Nothing Then ..... If s = Nothing Then .....
8
by: Tiraman | last post by:
Hi , i would like to get some explanation about using the Obj = Nothing . For example , I have a function that hold a local object like in this example public function Test() dim objMyCol...
12
by: Mike Eaton | last post by:
Hi all, What do people regard as the best practice with respect to freeing object references when you're done with them? Some people I've worked with in the past suggested that if you create an...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
6
by: DippyDog | last post by:
This is an old old post that I'm referencing regarding what happens when you set an integer variable to Nothing. It gets set to zero, not "Nothing." ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.