Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To DOT or not to DOT
Message
De
05/09/2001 20:44:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/09/2001 16:47:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00552816
Message ID:
00552925
Vues:
11
>Hi all,
>
>In VFP, what is the 'preferred' (read as future compatibility) way to use the AND & OR operators & NULL assignment. To use them with dots or not.
>
>*-- to DOT
>IF X .AND. (Y .OR. Z)
>   A = .NULL.
>ENDIF
>*-- or not to DOT
>IF X AND (Y OR Z)
>   A = NULL
>ENDIF
>
More readable without dots, as others have already mentioned. However, RI insists on using dots! In all other places, you can omit them, except for .T. and .F. (you can #declare T .T. or #declare TRUE .T., of course).

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform