Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What do you think of 'Beautify'?
Message
De
04/05/2010 06:54: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:
01462957
Vues:
45
>>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
>
(O_O)

Somehow I read a not in your former message. And yes, this is a nice way for code obfuscation.

[<><]
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform