Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP - .NET blog
Message
From
06/05/2009 11:15:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/05/2009 10:14:14
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01397536
Message ID:
01398164
Views:
98
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform