Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design issues
Message
De
05/08/2010 11:56:32
 
 
À
05/08/2010 02:03:36
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01475236
Message ID:
01475334
Vues:
53
>This works for a long as the client is inheriting from the class.
>
>However, in one particular class, which is already inheriting from something else, I need to create an object from Parser class. This works. So, in the client, I may have something like this:

Thanks, this works but what I have so far is much simpler:
    Public Class Parser

        Public Function ParseForTable() As Boolean
            Dim lcHtml As String = ""
            
            lcHtml = "Something"

            lcHtml = lcHtml + oOriginator.ParserGetContent(lnPrimaryKey)

            Return True
        End Function

    End Class
So, basically, in the client, I only have to add a ParserGetContent() method:
Public Class ViewPagePage

    Inherits Framework.Framework.ViewPage

    Public Overrides Function GetPage() As Boolean
        Dim loParser As Framework.Framework.Parser = New Framework.Framework.Parser(oProcess)

        ' Parse for table
        loParser.cTable = "Company"
        loParser.cContent = lcNotes
        loParser.oOriginator = Me
        If Not loParser.ParseForTable() Then
            Return False
        End If

        Return True
    End Function

    Public Function ParserGetContent(ByVal tnPrimaryKey As Integer) As String
        Return "Something"
    End Function
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform