I am using the following structure many times throughout my code to pass a set of data to a function:
Public Structure MyStruct
Dim ResourceID As String
Dim RSRCName As String
Dim CommercialType As String
Dim ParticipantName As String
Dim ASReserveZone As String
Dim SCADAStatusQuality As String
Dim SCADAStatus As String
Dim SCADAMWQuality As String
Dim ManualDispatchReason As String
Dim RegUpQual As Boolean
Dim RegDownQual As Boolean
Dim SuppQual As Boolean
Dim SpinQual As Boolean
Dim UseEmergencyLimits As Boolean
Dim FollowLastDispatch As Boolean
Dim ASOfferCurveDict As HybridDictionary
Dim XIC As Integer
Dim PriceBased As Integer
Dim PNodeID As Integer
Dim Committed As Integer
Dim CommitmentStatus As Integer
Dim ManualDispatch As Integer
Dim LastApprdNumOfIntervalsToMax As Integer
Dim MWCurve() As Double
Dim EnergyOfferCurve() As Double
Dim PlannedMW As Double
Dim SCADAMW As Double
Dim InitialOnHours As Double
Dim LastApprdDispatchMW As Double
Dim TotalRampedCRDeployMW As Double
End Structure
Dim Struct as MyStruct
I can use Struct = Nothing to reset the data, but I would rather iterate through the structure and set all the numeric values to 999999999. Any idea how to do this?