Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect Event Viewer Keywords null value
Message
From
08/01/2017 16:47:26
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Detect Event Viewer Keywords null value
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01646401
Message ID:
01646401
Views:
43
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?
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
Next
Reply
Map
View

Click here to load this message in the networking platform