Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of COMRETURNERROR
Message
From
20/05/2003 00:30:15
 
 
To
19/05/2003 22:30:10
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00790257
Message ID:
00790283
Views:
38
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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform