Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
There are also methods to save to a .xml file and retrieve from the .xml file. (Thanks, RonaldBiemans, for the original code.)
<Serializable()> _ Public Class Options ' System options Public blnDisplayExcel As Boolean Public strUserCategory1 As String Public strUserCategory2 As String Public strUserCategory3 As String Public strUserCategory4 As String End Class
(The OptionalField attribute is there so deserializing the class with a new option doesn't generate an exception.) This gives the same "Object reference not set..." exception when I execute the Set code.
<System.Runtime.Serialization.OptionalField()> Private pstrUserCategory(20) As String Public Property strUserCategory(ByVal i As Integer) As String Get If i < 1 Or i > 20 Then Throw New Exception("Out of range 1-20") Else Return pstrUserCategory(i) End If End Get Set(ByVal value As String) pstrUserCategory(i) = value End Set End Property