Avatar of RIAS
RIAS
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Delegate with parameter +vb.net 2.0

Hi,
Need to call this function with parameter with delegate.Any suggestions welcome

Cheers
Public Function RecordTable(ByVal Table As String, ByVal OutWhere As String) As Boolean
        '--------------------------------------------------------------------------------
        'Pre Conditions:
        'Table doing search on must contain the field refno
        'Parameters:
        'Table: Name of table to use in search
        'Outwhere: WHERE  section of the sql statement
        'Post Condition:
        'If record found in table then return true
        'else return false
        'On error
        'Msg displayed and function exits
        '--------------------------------------------------------------------------------
        Dim SQL As String
        Dim RS As New Recordset
        Dim flgRecord As Boolean = False
        If OutWhere.Trim = String.Empty Then
            Exit Function
        End If

SQL = "SELECT REFNO FROM " & UCase(Table) & " WHERE ClientCode = " & GetSQLValue(ClientCode, 4) & " And " &                            OutWhere

        RS = OpenRs(SQL)

        If RS.EOF = False Then flgRecord = True
        RS.Close()
        Return flgRecord    
       

ErrorHandler:
        AddMessage(FormatMessage(18, "RecordInTable " & OutWhere, Err.Description))
 End Function  '

Open in new window

.NET ProgrammingVisual Basic.NETProgramming

Avatar of undefined
Last Comment
Deathrace

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Deathrace

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy