Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return either dataset or integer from function
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00892206
Message ID:
00892587
Views:
26
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
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform