Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From VFP WS to .NET WS
Message
De
19/05/2003 17:09:30
 
 
À
19/05/2003 17:07:43
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00790165
Message ID:
00790179
Vues:
25
>Use Me keyword instead of This. It points to current class instance:
>
>Public Class WebService
>    Inherits System.Web.Services.WebService
>
>    Private cUrl As String = "http://www.levelextreme.com"
>    Private cUser As String = ""
>
>    <WebMethod()> _
>    Public Function MyMethod() As String
>
>        Private cUrl As String = "http://www.anotherurl.com"
>        Return Me.cUrl & cUrl
>    End Function
>
>End Class
>
>(it is best practice to use & instead of + to concatenate strings).

Thanks, Me is what I was looking for.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform