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
1
vote
0 answers
How to set a range that would not return Nothing?
Good morning,
I have a range set to retrieve values from cells on a protected sheet, in a closed workbook, in a remote backup unit. I tried everything to try stop it from returning Nothing but I just can't.
See an example below.
Dim MyArray As…

Eduardo
- 11
- 2
1
vote
1 answer
Re-assign mutable struct field of type Union{Nothing, Float64} in Julia
Let's say I have a simple mutable struct with a field that can be a Float or Nothing
mutable struct Foo
bar::Union{Nothing, Float64}
end
foo = Foo(0.42)
foo.bar = Nothing
If I try to assign Nothing to it, I get this error:
MethodError:…

alejandrociatti
- 1,122
- 11
- 16
1
vote
1 answer
VBScript setting an multiple objects to Nothing doesn't work when passing those into array
As I mentioned in the question, I have specific subroutine which let's say sets and utilizes multiple objects like below:
Sub Subroutine1
Set a = CreateObject("Somthing")
Set b = CreateObject("SomthingElse")
Set c =…

Vicky Dev
- 1,893
- 2
- 27
- 62
1
vote
4 answers
Flutter doctor command but nothing happen
I use a MacBook Pro and install flutter, but when I type flutter doctor, it doesn't respond (about 10 minutes passed).
flutter doctor
this issue same to me, but I don't install Mamp software.

jiahong.dong
- 11
- 1
- 5
1
vote
1 answer
What is the meaning of "Not Rng Is Nothing" (within the if) in the code below
Suppose you have a list of produce (column A) with totals next to them. If you want to find any total (column B) equal to zero and place LOW in the cell next to it (column C), do this:
Set Rng = Range("B1:B16").Find(What:="0", LookAt:=xlWhole,…

Arie
- 11
- 1
- 2
1
vote
1 answer
Check if Newtonsoft.Json.Linq.JToken is nothing
According to the Debugger, I've got a variable called myCancelled of type Newtonsoft.Json.Linq.Jtoken with a value of Nothing. I also casted it to Object and all of these conditions fail. My question is simply: How do I check if it's…

chakeda
- 1,551
- 1
- 18
- 40
1
vote
2 answers
Alternative way to expose you're returning Nothing in a method
I'm kind of in an impasse here.
Lets say I have module A which exposes some methods returning objets and module B that uses said methods from Module A. Module A will have situations when it will have to return Nothing.
The problem is: Of course I…

Xavier Huppé
- 544
- 1
- 4
- 17
1
vote
3 answers
Dealing with Nothing in the middle of a string of calls
I am a relative VB.Net noob, and I'm learning by doing. I'm sure what I'm about to ask has been asked 10^19 times before, but whatever code word it's under, I can't figure out how to Google it. Here goes...
We have an object model with one or more…

Maury Markowitz
- 9,082
- 11
- 46
- 98
1
vote
1 answer
JMockit equivelant to Mockito doNothing()
In Mockito if you want a void method to do nothing you can do this:
doNothing().when(_mockedClass).voidMethod();
Is there a way to do this with JMockit?
I can't seem to find anything about it. I've been trying to switch to JMockit but am having…

Mimerr
- 390
- 1
- 5
- 14
1
vote
1 answer
Error Performing Actions on Only Formula Cells
I was attempting to loop through every worksheet in every workbook in a folder and make sure only the cells containing formulas were locked. I have already been using code to lock all cells in every worksheet, and code to lock every formula in a…

jpford
- 73
- 3
- 9
1
vote
1 answer
Still have error "value copy is not a member of Nothing" even I filter Nothing class
I use scala 2.11.2. This is part of my function:
import scala.reflect.runtime.universe._
p => p.filter(p => typeOf[p.type] != typeOf[Nothing]).flatMap {
case Some(profile) => {
...
env.userService.save(profile.copy(passwordInfo =…

user504909
- 9,119
- 12
- 60
- 109
1
vote
1 answer
SSRS 2008 Is Nothing vs = Nothing
When writing an expression in SSRS 2008 to check for blank values (NULL), is there any difference between Fields!FieldName.Value = Nothing and Fields!FieldName.Value Is Nothing? It seems that i have seen it both ways. I am currently using = Nothing…

user786028
- 21
- 2
- 5
1
vote
2 answers
Avoiding debugger warning in IsNothing() statement
I am using Visual Studio 2012 and have the following code block. The code checks the file type of a specific file (that's why there are return True/False in it). If it encounters an error it also returns false. The warnings I get are that I use the…

Jens
- 6,275
- 2
- 25
- 51
1
vote
1 answer
NullReferenceException thrown even though checking for Nothing
I have some rather straightforward code for a Compare Function
Public Overridable Function Comparer(thisValue As Object, otherValue As Object) As Integer
Try
If thisValue Is Nothing Then
If otherValue Is Nothing Then
…

themightylc
- 304
- 2
- 15
1
vote
0 answers
VB.NET DataGridViewCheckBoxCell Checked value
I want to get the value from a DataGridViewCheckBoxCell
i have tried various codes
DataGridView1.Item(1, i).Value = False Then
also
DataGridView1.rows(i).cells(1).Value = False Then
also using ctype and cbool and convert.boolean... When i got into…

Shraavan Acharya
- 23
- 1
- 7