View Single Post
  #1 (permalink)  
Old April 1st, 2016, 03:01 PM
bigbugx bigbugx is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Lesson 27 missing code

I'm stuck at the following code in "Try it" section:

Public Overrides Sub Input0_ProcessInputRow(ByVal Row As
Input0Buffer)
If IsDate(Row.DateFirstPurchase) = False Then
Row.DateFirstPurchase = Now
End If
If IsDate(Row.BirthDate) = True Then
Row.DirectRowToValidatedData()
Else
Row.DirectRowToBadData()
End If
End Sub


Apparently, those 2 Row.DirectRowTo___() functions are custom defined. The book did not mention anywhere.

In the downloadable content I found the definition in bufferwrapper.vb:

Public Sub DirectRowToBadData()
MyBase.DirectRow("BadData")
End Sub

Public Sub DirectRowToValidatedData()
MyBase.DirectRow("ValidatedData")
End Sub

However I have no idea what "MyBase" is. Can you please explain it in more detail?

thanks.
Reply With Quote