Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a control as a reference
Message
De
30/12/2004 21:46:48
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00973454
Message ID:
00973472
Vues:
18
>I think your problem is the default value you need to give to the optional parameter.
>
>Why don't you create an overloaded method?
>
>
>    Private overloads Sub AddToLog(ByVal tcString As String)
>        Log.Text += "Started: " + Date.Now + Chr(13) + Chr(10)
>        Log.Text += tcString + Chr(13) + Chr(10)
>        CursorLog()
>    End Sub
>    Private overloads Sub AddToLog(ByVal tcString As String, ByVal toObject As Object )
>        toObject.Text += "Started: " + Date.Now + Chr(13) + Chr(10)
>        toObject.Text += tcString + Chr(13) + Chr(10)
>        CursorLog()
>    End Sub
>
This seems interesting. How the overloads process works anyway?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform