Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object variable or With block variable not set
Message
De
22/01/2011 16:45:21
 
 
À
22/01/2011 16:39:29
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01497018
Message ID:
01497027
Vues:
43
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform