Define fields whose values you want to keep from one input row to the next after the "Inherits UserComponent" and before the "Public Overrides...".
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper
Public Class...