Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from CreateObjecT('myForm')
Message
De
22/05/2005 23:25:34
 
 
À
22/05/2005 16:36:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01016561
Message ID:
01016648
Vues:
14
Hello,

yes .. it looks a bit akward .. it's not a ideal solution but rather a workaround ...

cant't answer your questions .. i've not designed it like this ..

but i don't see any problem with this approach .. you also gain a bit more flexibility since you can return arrays, more than one value etc ..

i use this class as my parameter object
DEFINE CLASS oParameters AS Relation

 FUNCTION THIS_Access(lcProperty)
  IF !PEMSTATUS(THIS,lcProperty,5)
   THIS.AddProperty(lcProperty)
  ENDIF
  RETURN THIS
 ENDFUNC

ENDDEFINE
so i don't have to add properties at designtime ..

in certain cases it also helps to keep interfaces clean .., just pass a parameter object and you never have to change the interface, but keep the flexibility of adding as much properties/parameters as you need later on ..

Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform