Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return 2 values from a function
Message
De
17/10/2008 10:37:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/10/2008 10:29:43
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355203
Message ID:
01355593
Vues:
29
You know my code with multiple returns was like this:
public bool SomeMethod()
{
  if ( FirstCheck() == false ) { return false; }
  //...
}
I copied Hugo's
Function SomeMethod() as Boolean
  return false
endfunc
And you know the other one written in VB

Hugo's code immediately return "false" w/o doing anything right?

Other codes (mine and Mike's) at least make a call to FirstCheck(). FirstCheck() might be doing tons of things before returning false.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform