Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a class instance as a parameter
Message
From
17/04/2006 21:35:02
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Passing a class instance as a parameter
Miscellaneous
Thread ID:
01114205
Message ID:
01114205
Views:
56
Is there a way to pass a class instance as a parameter? From within a class method, I would like to pass the parent object reference as a parameter when I call a function.

The class is designed like this:
Imports System.Windows.Forms

Public Class App

    Public Function Initialize() As Boolean
    End Function

    Public Class Encrypt

        Public Shared Function Encrypt(ByVal tcString As String, ByVal tcKey As String) As Boolean
            Return Framework.Encrypt.Encrypt(tcString, tcKey, Me)
        End Function

        Public Shared Function Decrypt(ByVal tcString As String, ByVal sDecrKey As String) As Boolean
            Return Framework.Encrypt.Decrypt(tcString, sDecrKey, Me)
        End Function

    End Class

End Class
Where you see the Me reference, this is where I would like to pass the equivalent This.Parent as we have in VFP.
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
Next
Reply
Map
View

Click here to load this message in the networking platform