Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design issues
Message
From
05/08/2010 11:56:32
 
 
To
05/08/2010 02:03:36
General information
Forum:
ASP.NET
Category:
Class design
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01475236
Message ID:
01475334
Views:
52
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform