Udostępnij za pośrednictwem


Referenced object has a value of 'Nothing'

The object being used has the value Nothing, but a usable value is expected. Nothing is a value that indicates that an object has no value, either because no value has been assigned to it, or it was assigned the value Nothing.

Error ID: BC30760

To correct this error

  1. Check the object to make sure it has been declared within the scope of the procedure where the error occurred.

  2. Verify that the value of the object is being set.

    Note

    The value Nothing is not the same as zero or an empty string. You can use IsNothing to check to see if an object contains the value Nothing.

See Also

Reference

Nothing (Visual Basic)

IsNothing Function