Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From VFP WS to .NET WS
Message
De
19/05/2003 17:07:43
 
 
À
19/05/2003 16:39:05
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00790165
Message ID:
00790178
Vues:
13
This message has been marked as the solution to the initial question of the thread.
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).

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform