Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif(lExp, .t., .f.)?
Message
De
23/01/2010 14:39:06
 
 
À
22/01/2010 17:12:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01445223
Message ID:
01445659
Vues:
50
>>>>It reads, "I've no clue what logical expressions are".
>>>>"IF THIS VALUE IS FALSE" would be
>>>>
>>>>IF NOT THIS.VALUE
>>>>
>>>>>Example:
IF THIS.VALUE = .F.
reads as IF THIS VALUE IS FALSE.
>>>
>>>I've seen this every place I've worked on code. It drives me nuts, but I've actually had other developers change my IF !this.value to IF this.value = .F. so I've learned to live with it :o) I don't sweat the small stuff.
>>
>>And I won't use ! for NOT. I find it's too hard to see. I always spell out NOT>
>>
>>Tamar
>
>I must be weird then; Always loved simplicity ;
>
>
>If !ok
>  return   && .t. 
>
My problem with that code is that I have to look too hard to see whether it's IF !ok or IF lok.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform