Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return either dataset or integer from function
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00892206
Message ID:
00892587
Vues:
25
Not saying it is right or wrong, but you could do something like the following:
Public Function MyFunction(ByRef i As Integer, ByRef ds As Dataset) As Boolean
    If blah then
        'Manipulate ds here
    Else
        'Manipulate i here
    End If

Return True       'Return True or False depending

End Function
Back where you called MyFunction, you could then test the values of the integer variable and the dataset variable and do the processing you need to do.

Thanks,

Vic

>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
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform