Click here to Skip to main content
15,893,381 members
Articles / Programming Languages / XML

Validating data with Flat File Checker

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
30 Oct 2009GPL32 min read 43.7K   881   17  
An article on data validation with a flat file schema generated in Flat File Checker.
''' <summary>
''' Evaluation Functions Available for Nodes inside Action in Flat File Schema
''' </summary>
''' <remarks></remarks>
Public Class EvaluateActionExpression
    Private _col As DataColumn
    Sub New(ByVal col As DataColumn)
        _col = col
    End Sub
    Public Function FileAlias() As String
        Return _col.datasource.AliasName
    End Function
    Public Function FileName() As String
        Return IO.Path.GetFileNameWithoutExtension(_col.Datasource.AliasName)
    End Function
    Public Function ColumnName() As String
        Return _col.Name
    End Function
    Public Function ColumnIndex() As Integer
        Return _col.Index
    End Function
    Public Function Start() As Date
        Return _col.Datasource.ValidationStart
    End Function
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Database Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions