Wrox Programmer Forums
|
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 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, 2004, 12:15 AM
Registered User
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Null in VB

Hi,

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?

Regards,Pankaj

 
Old March 30th, 2004, 04:17 AM
Authorized User
 
Join Date: Aug 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

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.

Greetz

Tom.





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





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