Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.