Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to clear an object
Message
De
19/01/2006 16:49:37
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Best way to clear an object
Divers
Thread ID:
01088685
Message ID:
01088685
Vues:
59
I have an object define as followed:
    Private oParameters(25, 2) As Object
This object is initialized with strings on the first column and any kind of types for the second column. After a process, I would like to clear it. Basically, the object need to exist but I need to empty its content. I am doing this:
    Public Function ParameterClear() As Boolean
        Dim lnCounter As Integer
        For lnCounter = 1 To nParameter
            oParameters(lnCounter, 1) = ""
            oParameters(lnCounter, 2) = ""
        Next
        nParameter = 0
    End Function
Is this the most optimized approach?
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
Répondre
Fil
Voir

Click here to load this message in the networking platform