Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What do you think of 'Beautify'?
Message
 
 
To
04/05/2010 05:13:53
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01462534
Message ID:
01462954
Views:
57
>No they are not interchangable. They are interchangable for array elemets only. () will not work on strings, while [] will not work on proc / method etc.

As I stated already elsewhere in this thread, the square brackets do work with functions/methods . Not that I would recommend to use them in such manner.
? myfunc(), myfunc[]

o = CREATEOBJECT("Test")
? o.MyMethod(), o.MyMethod[]

RETURN

FUNCTION myfunc()
RETURN DATE()

DEFINE CLASS Test AS Custom
FUNCTION MyMethod
RETURN DATETIME()
ENDDEFINE
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform