Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP - .NET blog
Message
De
06/05/2009 11:15:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/05/2009 10:14:14
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01397536
Message ID:
01398164
Vues:
99
>The class level code for a subclass? It must exist independent from any form.
>
>Must it? ;-)

I don't know. The above was a question.

> that may be weird... and somehow reminds me of VB6.
>
>Actually there may be advantages to having all of a form's code in one place. A big VFP form with code scattered all over the place may match purist OO more closely but can be a pita.

Agree. I prefer to have most of the code in a prg-based bizobject (one or more), while the visual parts are pretty much codeless, keeping only the part where they care of their looks - conditionally visible, shifting focus, page jumping, one-liners like thisform.CodeToRunWhenThisButtonIsClicked() and other stuff of the kind. The logic goes to bizobj.

Though, if I have a button six levels deep in membership hierarchy, where's its .click() code? At the form level?

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