Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
| Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2006, 04:19 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default use of Not and IS Nothing keywords


can someone briefly explain the use of NOT and IS Nothing in the following line:

 If Not Ds.Tables(strTable_CreditBalanceListingReport) Is Nothing

 
Old March 31st, 2006, 10:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

The "Nothing" keyword indicates a variable is that isn't initialized or doesn't contain valid data.

The "Not" keyword reverses this.

So the line you indicated says that if the dataset table is initialized and valid, then execute the code between the "If" statement.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Keywords on .CSS ? AMB CSS Cascading Style Sheets 1 May 27th, 2006 09:15 PM
How to highlight 3 keywords in 3 colors? gilgalbiblewheel Classic ASP Databases 2 October 20th, 2004 06:01 PM
highlight search keywords allang JSP Basics 2 October 13th, 2004 01:09 AM
META KEYWORDS anshul HTML Code Clinic 6 September 11th, 2004 06:06 PM
Excluding items with certain keywords ashcarrot SQL Language 4 July 23rd, 2003 10:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.