Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another Cheezy Tip of the Week (VFP6)
Message
De
14/07/1998 16:57:07
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00116665
Message ID:
00117335
Vues:
27
>Hi John,
>
>Good tip. Though for a situation like this it would be much better to instantiate a global Observer from a design viewpoint.
>
>All forms register to the Observer, and the Click of the button calls the observer to handle the Refreshing of objects. This way the same code would work for all the forms which register.
>
>
What's the difference, in this case? The forms should be (instances or subclassed instances) of the same class, so they could have the same EditState_assign routine, right? So, the code handling this event is stored only once; therefore having an Observer is almost superfluous, _unless_ it's doing some other things too. Now what's the list of good uses for an Observer, and what's the difference if the observing is done by an application object? I think I remember months ago there were some threads here, where several good solutions on form handling (multiple instances of the same form and other issues) were said are handled best by an app object; now it's the Observer (instead or along with it?).

Since the concept of Observer is relatively new, I think we'd need some clarification of the whole idea.

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