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
2 answers
Replacement for "If object = Nothing Then" in Strict Mode VB.NET
I have a function which has a selectedID parameter of type "object".
If my parameter is the default for the underlying type: i.e. Integer default is zero, I want some action to take place.
Without "Strict On", I can use:
If selectedID = Nothing…

Jonathan
- 25,873
- 13
- 66
- 85
1
vote
1 answer
How to handle null/nothing/blank values on MS Access 2010 form controls within VBA?
I have a need for a "track-changes" capability in Access 2010. I ran across this script which should do the trick with a little work.
It's clear and understandable but it doesn't quite yet handle all of the cases I need for textboxes. (I'll…

John
- 15,990
- 10
- 70
- 110
1
vote
2 answers
Determine empty column with Nothing, = Nothing or IsNullOrEmpty
When you want to determine if a database column is empty (i.e not null but there is not any value in it) what are the differences between the below options:
customerRegion varchar(10) NULL is retrieved from the SQL database:
If customerRegion = ""…

03Usr
- 3,335
- 6
- 37
- 63
1
vote
1 answer
How do I know if an object is already referenced?
In some VBA attached to an Excel 2003 spreadsheet I need to make use of some objects that take a while to instantiate - so I only want to do the 'set' thing once...
It's easier the show the code than to write an explanation!
' Declare the expensive…

SAL
- 1,218
- 1
- 14
- 34
0
votes
0 answers
passing nothing parameter in VB.NET (Object reference not set to an instance of an object)
I'm trying to pass "Nothing" to a parameter in Vb.NET ( using VS 2010 with everything to default )
The code is like this:
Public Property status As statusEvidenta
_
Get
Me.m_status = Nothing
Me.m_status =…

mcirsta
- 13
- 1
- 5
0
votes
0 answers
Wordpress Error "Nothing Found" caused by the Polylang plugin
The website is on CMS WordPress, and periodically, after making any edits (whether it's a change in a post/page, updating a plugin, widget, or theme file), the "Nothing Found" error occurs. This error specifically affects all sections and…

Legalgrounds
- 1
- 1
0
votes
1 answer
How can i deploy my react app on any hosting like vercel / render
How can i deploy my react app on any hosting like vercel / render. I m trying both but always got the error. This is my repo on git : https://github.com/rohitdr/project.git
How can i deploy my react app on any hosting like vercel / render. I m…
0
votes
1 answer
Kotlin Generic problem, UNCHECKED_CAST , required:Nothing
@file:Suppress("UNCHECKED_CAST")
data class Element(
val key: String,
val valueOne: T,
val valueTwo: T,
val comparator: Comparator,
val comparatorValue: CompareResult
)
enum class CompareResult(
val value: Int
) {
…

smaricevic
- 3
- 2
0
votes
0 answers
dispose or turn object to null object from within its sub
I have an object which creates a line in an sql table.
using that object i can create and modify the record.
I want to add a sub that would delete the record and than dispose the object.
Something like this:
class myRecord
int recordId
sub…

barak.o
- 11
- 2
0
votes
2 answers
Check for empty array indexes in VBA (that can include objects)
I need to do a is nothing check on a Variant array to exclude empty indexes from being used. I use is nothing to capture empty indexes which hold (empty) objects, it works fine but for indexes that hold regular data types (not objects), it throws an…

Albin
- 1,000
- 1
- 11
- 33
0
votes
1 answer
Python file handling / counting amounts in file
This code is to read from a file then count the amount of times the same ip comes up and print the results to a file i have made called results.csv, it is printing to the PowerShell on python but not to the file and the counter is not adding…

papabeale
- 1
- 2
0
votes
1 answer
PHP - how i can have a list of all the php code?
I want to have a list of all the php code with its description(php code bank).
Sorry, I did not find it on Google.
If anyone has a link or PDF of it, please let me know.
thank you

Dem0n Fa3e
- 3
- 1
0
votes
3 answers
Object still exists after deletion
Why does a Shape Object still exist after it has been deleted?
When I check the Shape Object it is not Nothing and therefore still exists even though the shape is visually deleted from the worksheet.
Sub Delete_shpObj_and_Check_if_Still_Exists()
…

SweDentan
- 67
- 8
0
votes
1 answer
Clarification required regarding spark scala Array()
Say, I have a dataframe. Few of the column values in that dataframe is Array() i.e., Array[Nothing]. How can i filter these? because if i don't it will throw error if someone tries to print the dataframe or so.

Suhas Nayak
- 21
- 1
- 5
0
votes
1 answer
Check for null value for value types in VB.NET
I have a KeyValuePair(Of TKey,TValue) and I want to check if it is null or not:
Dim dictionary = new Dictionary(Of Tkey,TValue)
Dim keyValuePair = dictionary.FirstOrDefault(Function(item) item.Key = *someValue*)
If keyValuePair isNot Nothing Then…

Arsalan
- 709
- 2
- 14
- 27