Example of ObjProperty with Option Strict OFF and ON
With
Option Strict OFF, this entry is valid.
Dim Stat As Object = ObjProperty("STATUSIND.STATUS")
MessageList("The status is: ", Stat)
With Option Strict ON, the previous entry
returns an error message. ObjProperty method does not
always return an integer. You must specify that STATUS_IND is an integer. In this script, MessageList fails unless you specify that Stat is a string. You must explicitly cast the returns using the Cint and CStr functions.
Dim Stat As Integer = Cint(ObjProperty("STATUSIND.STATUS"))
MessageList("The status is: ",CStr(Stat))
Many examples in this document are written assuming that
Option Strict is
OFF. If
Option Strict is
OFF, then you can comment it out. If you want
stricter validation, then remove it.