Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put Sub functions?
Message
 
À
24/10/2003 13:17:54
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00841315
Message ID:
00842470
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
Michel,

As Bonnie mentioned in an earlier thread you could also declare the function as shared (refered to as static in C#). Since your class does not appear to contain a "Sub New()" constructor (ie, requires no initialization of parameters, objects etc. to be used) then there is no need for you to instanciate it before calling any functions. Simply add the "shared" keyword to your function declaration.

Public Shared Function AddSpeaker(ByVal tnSpeakerID, ByVal tlPicture, ByVal tcName, ByVal tmBio) As String

You should then be able to reference the function directly using ClassName.FunctionName

_Function.AddSpeaker
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform