Click here to Skip to main content
15,910,130 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Function Return Value Pin
Tamimi - Code21-Nov-06 19:28
Tamimi - Code21-Nov-06 19:28 
GeneralRe: Function Return Value Pin
momooomooomomo21-Nov-06 20:15
momooomooomomo21-Nov-06 20:15 
GeneralRe: Function Return Value Pin
momooomooomomo21-Nov-06 20:15
momooomooomomo21-Nov-06 20:15 
GeneralRe: Function Return Value Pin

MmM.net</

21-Nov-06 22:06

MmM.net</

21-Nov-06 22:06 
GeneralRe: Function Return Value Pin
Tamimi - Code22-Nov-06 0:58
Tamimi - Code22-Nov-06 0:58 
AnswerRe: Function Return Value Pin
coolestCoder21-Nov-06 20:11
coolestCoder21-Nov-06 20:11 
GeneralRe: Function Return Value Pin
momooomooomomo21-Nov-06 20:19
momooomooomomo21-Nov-06 20:19 
GeneralRe: Function Return Value Pin
Kevin McFarlane21-Nov-06 23:31
Kevin McFarlane21-Nov-06 23:31 
An alternative is to define a structure that has two values and return that. In .NET 2 you could use one of those libraries that has a Pair generic class, e.g., see the free PowerCollections library. In C++ the Standard Library also defines a Pair class precisely for situations where you want to return two values - which is quite a common scenario in fact. I try to avoid ByRef when possible because it makes code less clear. But often you can't avoid it. Unfortunately, I'm not using .NET 2.0 yet, so can't use libraries such as PowerCollections.


Kevin

AnswerRe: Function Return Value [modified] Pin
Johan Hakkesteegt24-Nov-06 1:22
Johan Hakkesteegt24-Nov-06 1:22 
QuestionScheduler Pin
Subjugate21-Nov-06 19:04
Subjugate21-Nov-06 19:04 
AnswerRe: Scheduler Pin
Dave Kreskowiak22-Nov-06 4:26
mveDave Kreskowiak22-Nov-06 4:26 
GeneralRe: Scheduler Pin
Subjugate22-Nov-06 16:48
Subjugate22-Nov-06 16:48 
GeneralRe: Scheduler Pin
Dave Kreskowiak26-Nov-06 15:01
mveDave Kreskowiak26-Nov-06 15:01 
QuestionLocking Database Edit Pin
ONeil Tomlinson21-Nov-06 12:51
ONeil Tomlinson21-Nov-06 12:51 
AnswerRe: Locking Database Edit Pin
leong_wang21-Nov-06 16:33
leong_wang21-Nov-06 16:33 
AnswerRe: Locking Database Edit Pin
Dave Kreskowiak22-Nov-06 4:24
mveDave Kreskowiak22-Nov-06 4:24 
GeneralRe: Locking Database Edit Pin
jsampsonPC22-Nov-06 10:53
jsampsonPC22-Nov-06 10:53 
Questionmaintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
uglyeyes21-Nov-06 12:37
uglyeyes21-Nov-06 12:37 
AnswerRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
jsampsonPC21-Nov-06 13:10
jsampsonPC21-Nov-06 13:10 
GeneralRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
uglyeyes21-Nov-06 13:44
uglyeyes21-Nov-06 13:44 
GeneralRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
jsampsonPC21-Nov-06 14:02
jsampsonPC21-Nov-06 14:02 
GeneralRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
jsampsonPC21-Nov-06 14:38
jsampsonPC21-Nov-06 14:38 
GeneralRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
uglyeyes21-Nov-06 14:50
uglyeyes21-Nov-06 14:50 
AnswerRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
jsampsonPC22-Nov-06 1:10
jsampsonPC22-Nov-06 1:10 
GeneralRe: maintaining viewstate on microsoft.web.ui.webcontrols.treeview Pin
uglyeyes22-Nov-06 5:03
uglyeyes22-Nov-06 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.