Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put Sub functions?
Message
 
 
To
24/10/2003 13:17:54
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00841315
Message ID:
00842470
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform