Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass value of parameters from UI to BIZ to DA
Message
De
19/01/2008 13:33:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01283283
Message ID:
01283297
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>The only way I see passing the values of from UI to BIZ to DA is by passing them as parameters when instantiating BIZ class and respectively DA class. But the number of this properties/parameters would be too many and kludgy. So I am looking for a better way.

No, there's only one parameter - the object itself.

You'll need something like this (in metacode):
*-- the new object's .init
lparameters toParent
n=amembers(aPr, toParent, "UC")
for i=1 to n
   lcProp=aPr[i]
   do case
      case inlist(lcProp, "name" ... and any other property we want to skip)
*-- do nothing
      case {any other exception}
*-- do nothing
      case pemstatus(this, lcProp, 5)
         this.addproperty(lcprop, getpem(toParent, lcProp))
   endcase
endfor
Not eactly sure of the aPr array, may need to look at what exactly does aMembers do for various parameters - this is just to get you started, but shouldn't need much work.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform