Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return either dataset or integer from function
Message
From
05/04/2004 09:58:31
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00892206
Message ID:
00892250
Views:
21
Chris,

The cleanest way to do this is to create a class that contains two public properties, an integer and a dataset. Return an instance of that class from the function and test the dataset property for Nothing.

>Hi!
>
>Is there some way to do this?
>
>
>Public Function MyFunction() As Integer or As Dataset
>if blah then
>return dataset
>else
>return 1 'integer value of some kind
>end if
>End Function
>
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform