Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object variable or With block variable not set
Message
From
22/01/2011 16:45:21
 
 
To
22/01/2011 16:39:29
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01497018
Message ID:
01497027
Views:
42
>Yes, as Hugo said ... it's not really saying don't initially set an object to Nothing, it's saying that in order to use the With, you need to be sure your object is instantiated first ... which makes sense! There's absolutely nothing wrong with initially setting an object to Nothing. I do it frequently when I have situations where I want to determine whether an object needs to be instantiated or not by first checking If MyObject = Nothing.

Yes, but as I just replied to him, the With/End With syntax doesn't exist in anything I do.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform