Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP inlist() in c#
Message
De
28/01/2013 14:25:10
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
28/01/2013 12:42:00
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01320903
Message ID:
01564386
Vues:
66
>>>>Look at the switch command
>>>
>>>Switch will not help me in this case as I need 3 cases:
>>>
>>>Both variables defined
>>>
>>>startTime defined
>>>
>>>endTime defined
>>>
>>>I don't see how switch can help - switch is only for checking a single variable against predefined values.
>>
>>That's the problem.... if its not in a blog post, you can't figure it out....Learn to think outside a blog post...
>
>I don't see how it could be used in any efficient way since the parameter to a switch statement must be a simple type.

I didn't say it would be efficient, but the point is that she said a switch wouldn't work when replying to me when I knew it would. You have to think differently than Naomi thinks. Gregory showed her two ways of using the switch, but she can't accept that because she knows it won't work. But I bet, Gregory's solution would be pretty close to as fast as the if's/elses.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform