Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text box
Message
De
04/03/2002 09:34:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/03/2002 09:25:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00627767
Message ID:
00627772
Vues:
9
>What is actual difference between .setfocus and .setfocus()

There is none. Parentheses are optional for methods that have no parameters.

Personally, I prefer to include the parentheses, to make the program more readable, IMO: the parentheses make it clear that it is a method. Properties usually have no parentheses (except for array properties, where you can use either parentheses or square brackets).

HTH, 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