Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What do you think of 'Beautify'?
Message
 
 
À
04/05/2010 05:13:53
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01462534
Message ID:
01462954
Vues:
56
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform