Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a procedure like a method syntax
Message
De
21/04/2009 17:33:27
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Call a procedure like a method syntax
Divers
Thread ID:
01395833
Message ID:
01395833
Vues:
138
I have several procedures in a .prg file that I call in various places in my form methods. And, I have "Set Procedure to WhatEver additive" in my app startup routine.

So, when I want to use one of the procedures from a form or class method, I usually do something like this:
Do SomeProcedure with lcSomeCharString1, lcSomeCharString, llSomeBoolValue
I like the look of my code better if I do this:
SomeProcedure(lcSomeCharString1, lcSomeCharString, llSomeBoolValue)
It seems to work either way, so, are there any pros or cons to one way over another?

.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform