CAVESTER Posted October 27, 2003 Posted October 27, 2003 Hi all, Quick question... from a syntax and a programaticly correct point of view, is it better to form a construct like this... If oDB.GetObject Is Nothing Then Exit Sub End If Continue... or this... If Not oDB.GetObject Is Nothing Then Continue... End If Cheers, Lee. Quote
Moderators Robby Posted October 28, 2003 Moderators Posted October 28, 2003 It depends on which condition you need to handle... if you will have code in both then either one is fine, but NOT if you're going to use Exit Sub. (Don't use it) Also, drop the o that prefixes oDB since everything in .NET is an Object. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.