Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return 2 values from a function
Message
From
16/10/2008 10:51:57
John Baird
Coatesville, Pennsylvania, United States
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01355203
Message ID:
01355385
Views:
20
>> My point is that from a coding standpoint, a method or function should have a single entry point,
>
>How can it have more? (unless you're counting overloading which isn't really the same thing)
>

That was a mistype.. I meant single exit point. :)

>Now you've made me hungry. OK: Shall we settle on two return values : the actual return and one out/ref?


Yep. As I said I do that all the time, except I return structures not OUT parameters unless I'm forced to by TryParse....
Previous
Reply
Map
View

Click here to load this message in the networking platform