Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return either dataset or integer from function
Message
De
05/04/2004 09:58:31
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00892206
Message ID:
00892250
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform