Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equals? Why?
Message
From
13/07/2001 11:48:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
13/07/2001 11:36:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00530280
Message ID:
00530317
Views:
22
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform