Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Naming conventions again........
Message
De
28/08/1999 05:35:05
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00258085
Message ID:
00258779
Vues:
19
George,

I totally agree and apply the same rules, Except;

>2. The exit from any procedure/function/method always occurs at the last line of the procedure/function/method.

In somecases I exit the proc when it contributes better readability. If in some cirsumstance it is needed to discontinue the proc before any other functional code in the proc (thus in the beginning of the proc). For example a Deleterecord event on a form:

IF userHasNoDeletePermission()
RETURN False
ENDIF

...
...
Other code to delete the record

Regarding the naming conventions, I did clearly state I've got my doubts (and i still doubt).

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform