Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equals? Why?
Message
De
13/07/2001 11:48:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
13/07/2001 11:36:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00530280
Message ID:
00530317
Vues:
20
>VFP no longer cares and infact, if there are no parameters, you can even leave off the ().

Omitting the parameters would work only for methods, but not for regular functions.

The following doesn't work without the parentheses:
MyFunction && parenteses missing here

FUNCTION MyFunction
	MessageBox("Hello")
ENDFUNC
And in methods, I personally prefer to leave the parentheses for readability (to distinguish methods vs. properties).

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