Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect Event Viewer Keywords null value
Message
De
09/01/2017 03:50:22
 
 
À
08/01/2017 16:47:26
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01646401
Message ID:
01646405
Vues:
38
>When you have something like this:
>
>
>' Cast the EventRecord object as an EventLogRecord object to access the EventLogRecord class properties
>loEventLogRecord = CType(loEventRecord, EventLogRecord)
>
>
>...the following won't work to detect if we have a null value:
>
>
>' If we have the object
>If Not loEventRecord.Keywords Is Nothing Then
>   loInsertRow.ParameterAdd("Keyword", loEventRecord.Keywords)
>End If
>
>
>Anyone would have a recommendation on a workaround?

Don't understand your question. Firstly, you are casting to loEventLogRecord but not using it in subsequent code. And what is the value of loEventRecord and loEventRecord.Keywords when the if statement executes ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform