Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent of COMRETURNERROR
Message
 
 
À
19/05/2003 22:30:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00790257
Message ID:
00790283
Vues:
34
This message has been marked as the solution to the initial question of the thread.
>I would like to know what is the equivalent of COMRETURNERROR() that we can use in a VFP WS to force an error. For example, I need to convert the following:
>
>
>If Len(ALLTRIM(This.cUser))=0
>   COMRETURNERROR('You have to login in order to use the Web Service.','')
>EndIf
>
It would be:
If Len(ALLTRIM(This.cUser))=0
   Throw New System.Exception("You have to login in order to use the Web Service.")
EndIf
Hope this helps,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform