p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Knight's Microsoft SQL Server 2012 Integration Services 24-Hour Trainer (http://p2p.wrox.com/forumdisplay.php?f=734)
-   -   Lesson 27 missing code (http://p2p.wrox.com/showthread.php?t=98774)

bigbugx April 1st, 2016 03:01 PM

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.


All times are GMT -4. The time now is 03:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.