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
0 answers
print statement in loop doesnt print
I am currently learning python for fun so I am doing the challenges on this list. So this is the code in question which is supposed to return 523. I have a print statement at the end that is supposed to print the number which meets all the criteria…

Healthyboi
- 1
- 1
0
votes
1 answer
Simple Code: JavaScript, Uncaught ReferenceError: (x) is not defined
I am trying to run this code, this is a code when I choose some information in the gyro and then put it on the console, but the error
Uncaught ReferenceError: Gyroscope is not defined
is disrupting my project
Trying run various times, but this…

Guilherme Costa
- 7
- 2
0
votes
0 answers
HttpContext.Current is Nothing (same as null in C#) in asmx web service
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
_
…

Ursidae
- 87
- 9
0
votes
1 answer
Why the return value is always a blank string?
My PowerBuilder function returns hard coded string values on certain conditions.
I checked in debugger and one of the condition surely send back the hard coded string but on the side where call was made to the function, i always get empty string…

Shoki
- 21
- 12
0
votes
1 answer
git status say nothing to commit, but can't switch branch
I'm working on windows, Thanks for git professionals for any help on this.
PS G:\Solid\WebPortals> git status
On branch pos-event-waiver
nothing to commit, working tree clean
PS G:\Solid\WebPortals> git checkout pos-exchange-bill
error: Your local…

Route2Me
- 1
- 3
0
votes
1 answer
Sitecore - render Code if item is NULL
In Sitecore you can easily render a context item's value by using
@RenderingContext.Current.Rendering.Item["itemname"]
However: when I place a Controller Rendering to a placeholder there is no content assigned yet. therefore nothing will be…

David
- 41
- 1
- 1
- 9
0
votes
2 answers
If "Not X Is Nothing Then" replacement in VB.Net
When we want to check not null in vb.net we use "IF Not X Is Nothing Then" but this is very vague to read and understand especially if code is complicated or large. Is there any condition with which we can check the same condition and easy to read…

maverickabhi
- 197
- 1
- 6
- 21
0
votes
1 answer
BeagleBone Black uEnv.txt empty
I've recently purchased a BeagleBone Black. I installed the drivers, got myself a SD card and an external card reader,7yip and win32 disk imager just like the Beaglebone startup guide told me to. However, when I put my disk on the micro-sd card and…

J. Doe
- 20
- 7
0
votes
1 answer
WPF/VB How to set a threestate checkbox (or nullable boolean) to Nothing(null)
The title explain all itself. For VB the keyword Nothing is the same as False.
This code verify if checkbox is a three state checkbox, and set the default value, indeterminate if is a "three state", and false if is not.
myThreeStateChkbox.IsChecked…

Baro
- 5,300
- 2
- 17
- 39
0
votes
0 answers
Gulp starts but do nothing
I'm using underscore with sass to create a theme, and I'm using gulp as task runner.
The problem is that after wtaching nothing happens. I tried to perform a single task but once more time nothing. To be sure I performed js task javascript too …

Salvio
- 100
- 2
- 15
0
votes
2 answers
Why does setting a DataSet row value to Nothing initialize it to the data type minvalue?
When setting a DataSet row column to Nothing, like row.Date = Nothing, why does it initialize it to the data type minvalue? In this case a date, that gets set to 0000-01-01. The column is set to allow null etc., and if I don't set the row to…

Marcus L
- 4,030
- 6
- 34
- 42
0
votes
1 answer
Nullable(Of ) is not set to Nothing in conditional ternary operator
Why I can't set Nothing to Nullable(Of Double) through conditional ternary operator but I can directly?
Dim d As Double? = Nothing
d = If(True, 0, Nothing) ' result: d = 0
d = Nothing ' result: d = Nothing
d = If(False, 0,…

yarecky
- 97
- 8
0
votes
1 answer
Insert DateTime which has no value
I'm running an If statement before my INSERT, to compare whether or not a date has been entered. If a value has been entered, I'm assigning this value to a variable (used as a parameter value), but if no value has been entered, I need to literally…
user6634034
0
votes
0 answers
.Net IsNothing and Is Not Nothing causing exception in the Catch/Finally block when using Tasks
**Edit
Uncheck "Enable Optimizations" in the advance compilation options will not cause this error.
Removing the For Loop in the code will also not cause this problem.
Assigning the SF variable to a class level variable and checking that for…

ICICI81
- 101
- 1
- 9
0
votes
2 answers
Zero element in an array of Object type evaluating to Nothing
I am setting an array's elements to Nothing if the same elements in another array is Nothing. (for various reasons I can't clone the array). Both arrays are Object type. However, when elements in the first array Objx(i, j) are equal to 0, the…
user1493382