Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text box
Message
From
04/03/2002 09:34:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/03/2002 09:25:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00627767
Message ID:
00627772
Views:
11
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform