Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters
Message
De
17/02/1999 12:48:50
 
 
À
17/02/1999 12:43:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00188484
Message ID:
00188486
Vues:
17
>I had visually define a class. Visually define all the objects with
>it's methods and properties. I don't know how to give a methid the possibility to accept parameters.
>See VCR example on VFP manual, on the last part of the code definition, when you create the vcr object the method "SetTable" needs a parameters "cTableAlias". Doing this on a .PRG is easy, but the manual and the programs help soy nothing about doing that vissualy.
>
>PLEASE is really important for me to solve this problem...
>
>Thank You very Much.
>
>Emiliano from Argentina.

Emil...

realmente no es muy dificil hacerlo...
lo que tienes que hacer es estar seguro que el metodo que recibe los parametros
tiene la lista de ellos al comienzo...

LPARAMETERS ;
...

despues de esto puedes usar ese parametro comouna variable local al methodo.

y para pasar parametros a este metodo desde otro u otro programa...

.()
An Intelligent fool can make things bigger and more complex... It takes a touch of a genius -and a lot of courage- to move in the opposite direction".
-Albert Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform