Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To DOT or not to DOT
Message
From
05/09/2001 20:44:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/09/2001 16:47:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00552816
Message ID:
00552925
Views:
12
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform