Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a class instance as a parameter
Message
De
17/04/2006 21:35:02
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Passing a class instance as a parameter
Divers
Thread ID:
01114205
Message ID:
01114205
Vues:
55
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform