Archive for the 'VB.Net' Category

Record Exit

Public Function recordExist(ByVal sSQL As String, ByVal sTable As String) As Boolean
        Dim totalRow As Long = 0
        'Set the Data Adapter 
        Dim da As New SqlDataAdapter(sSQL, CN)
        Dim ds As New DataSet()
        da.Fill(ds, sTable)

        totalRow = Convert.ToInt32(ds.Tables(sTable).Rows.Count)
        If totalRow > 0 Then
            Return True
        Else
            Return False
        End If
    End Function

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }


Blog Status

  • 4,107 hits

IndianBro Calandar

January 2010
M T W T F S S
« Aug    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

Flickr Photos

Ring of fire

Untitled

Untitled

More Photos