O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tuple(Of T)

With methods that return function results, certain situations pose a problem that usually requires a bit of extra effort; specifically, what should you do when the function returns more than just one value as the result? So far you have seen two possibilities that can avoid this problem:

  • You pass parameters by reference, essentially “misusing” the passed variable as a return value. This is similar to the TryParse method of many primitive data types, so you can determine whether a string can be converted into a primitive data type.

  • You create a support class or structure that combines the returned values.

Tuple(Of T) provides yet a third option. The generic Tuple class reconciles as many values as you specify parameters (up to eight) when ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required