Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 30th, 2004, 12:15 AM
Registered User
Join Date: Mar 2004
Location: , , India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Null in VB


1. How can I pass NULL through a VB function. It could be done if argument's data type is variant but I don't want that because in future I may need to port this in .NET. .NET doesn't support variant data type.

2. Is there any function to check whether connection is open or not?


Reply With Quote
  #2 (permalink)  
Old March 30th, 2004, 04:17 AM
Authorized User
Join Date: Aug 2003
Location: , , Belgium.
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts


About the Null i probably cannot help you. But I know that there is a vbNullString.

About the connection on the other hand: you can check the connection.state object.
If this is 1 it is open and if it is 0 it is closed.

Hope this helps a bit.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing null value to integer abhishekkashyap27 C# 2005 9 April 18th, 2008 04:11 AM
Passing null values maddy137 ASP.NET 1.0 and 1.1 Basics 1 May 7th, 2006 12:26 PM
passing a null value thru sql parameter polofson .NET Framework 2.0 1 May 3rd, 2006 12:56 AM
NULL in VB6 vs VB.NET tact_259 Pro VB.NET 2002/2003 1 May 26th, 2004 07:54 AM
Soap parameters passing as null daniel_bowden XML 3 February 26th, 2004 12:17 PM

All times are GMT -4. The time now is 10:37 AM.

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