In VB.NET, Nothing refers to something which has not been initialized. In C# it would be null. Occasionally used in the Scala type system.
Questions tagged [nothing]
140 questions
0
votes
2 answers
Setting DataReader = nothing
In my project I have seen that at many places developer has just nullify the DataReader object after use and hasn't close or dispose..
I want to know the advace effect of doing so, I mean nullifying the datareader and not closeing them.
Thanks and…

tanmay
- 41
- 1
- 2
0
votes
1 answer
Range is set to nothing but cell references within range are valid
I have some VBA in an Excel 2010 document which returns "nothing" when I try to assign a range from a different worksheet. I can reference the value of a cell within the range with no problems.
Why does the code below leave the rng variable set to…

Ian M
- 567
- 8
- 33
0
votes
1 answer
Are negative numbers considered as null in vb.net?
This might be a stupid question, but I tried finding an answer and did not find anything.
Are negative numbers considered as 'nothing'(null) in vb.net?
Debug mode:
Above is a query to db to find me all values where the district is 'value'. Its a…

Polynomial Proton
- 5,020
- 20
- 37
0
votes
1 answer
How to removal the Nothing type matched in case phase (scala)?
During a function I use the simple code:
match{
case Some(one)=>one.copy()
case Type =>
...
case _ =>
}
There is error, since the Nothing is subtype of every type and Nothing do not have copy function.
AnyOne know how to delete the…

user504909
- 9,119
- 12
- 60
- 109
0
votes
2 answers
Range reference is "Nothing"?
I'm trying to write a function to return the next blank row on a sheet to insert input.
The code is at work so I can only summarize.
I do something like Set rng = Range("Data!A" & row) then return the reference.
Through debugging, I determined the…

CheeseMo
- 167
- 2
- 3
- 12
0
votes
2 answers
How much memory does Nothing take?
I just wondered, if I have a variable and I assign Nothing (or Null) to it, how much memory does the variable occupy?
For example
Dim i as Integer = Nothing
Does the variable use no memory? Or the size of the integer, 4 byte? Basically I think…

Jens
- 6,275
- 2
- 25
- 51
0
votes
1 answer
VB.Net JSON Is Nothing Not Working?
item.Text = If(jResults2("items")("item") Is Nothing, "", jResults2("items")("item")("icon").ToString())
i am using this code to so if item is not present in the json it will continue however when the item does appear in the json it is still…

ids
- 35
- 1
- 10
0
votes
3 answers
Return nothing in VB6
Quite simply i need to figure out how to rewrite the following code for VB6 so that my application allows nothing to be passed into a textbox.text value
Function GetDbValue(ByVal tb)
If tb.Text = "" Then
Return Nothing
Else
Return tb.Text
End If
…

Zingo
- 281
- 3
- 8
- 25
0
votes
1 answer
ASP.net - Datatables become Nothing on PostBack
I am filling a datatable on page_load in order to use it later on.
Public serviceTable as Datatable
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack = False Then
…

HelpASisterOut
- 3,085
- 16
- 45
- 89
0
votes
1 answer
Joomla module with no display on frontpage
I have been developing a Joomla module. This is my first module development.
Is it possible that I enable a module in Joomla and let there is no output in front page?
Because I don't want to display anything in a front page position, just show a…

user1652521
- 19
- 1
- 4
0
votes
2 answers
After setting something to Nothing it stays as what it was before?
I've got the following:
For Each curCustomer As Customer In _customersEdit
If (IsNothing(curCustomer)) Then
Continue For
End If
'other code
If (curCustomer.SeatIDs(0) = primarySeat) Then
'other code
End If
If…

Levi H
- 3,426
- 7
- 30
- 43
0
votes
1 answer
VB.NET Byte Problem
I am porting some c# code to vb.net, currently trying to figure out how to do this..
byte isEndReached = //get some data
if (isEndReached != 0)
{
for (int y = 0; y < isEndReached ; y++)
{
//do some stuff
}
}
My attempt:
Dim…
newbatwork
0
votes
1 answer
Testing for NullReferenceException (Not Testing for Nothing)
I have a class someone else wrote for which I don't have the source code. It has a property UM that is backed by _UM, a string. In some circumstances _UM is Nothing. I would expect that UM would be Nothing too, but when I inspect (using Quick Watch)…

cjbarth
- 4,189
- 6
- 43
- 62
-1
votes
1 answer
How can i Solve error in postaman 403 err0r
enter image description here
how can solve this error
I am trying more manny times but I cant fount any response

pri
- 1
-1
votes
1 answer
unable to run oracle database using python can some one help me with this?
unable to run oracle database using python
Traceback (most recent call last): File "Oracle.py", line 2, in
con=cx_Oracle.connect('scott/tiger@localhost')
cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 32-bit Oracle Client…