Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CASE statements
Message
De
17/10/2003 02:26:55
 
 
À
16/10/2003 09:59:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00838740
Message ID:
00839622
Vues:
27
Thats a great idea I will try it!



>I'm not sure if VB.net works the same as VB6, but in VB6, you can get around this by using
>
Select Case True
>Case SomeBooleanFunction("teststring")
>   ' etc.
>End Select
>
>>The VB.Net case statement will not test expressions, so .net net I find myself having to do
>>
>>If .......... Then
>>
>>elseif
>>
>> ................
>>
>>elseif
>> ...................
>>
>>
>>end if
>>
>>
>>To my eyes this is ugly compared to the VFP case statement.
>>I find the VFP CASE staement very flexible and easy to read unless I get too sloppy and do something
>>as dumb as this.
>>
>>CASE ThisTrue and ThatTrue but not if ThatOtherFalse
>> ........
>>CASE ThatOtherFalse OR ThisTrue and ThatTrue
>> ........
>>ENDCASE
>>etc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform