Class events

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dave Kelly (dkelly_at_memco.co.uk)
Date: 01/11/05


Date: 11 Jan 2005 06:40:35 -0800

I have generated a class, which contains configuration data for my
application.

Unfortunately I cannot use a static implementation of the class, as it
requires a constructor.

I generate instances of this class in several other classes (wherever I
need to retrieve the config details).

I would like any of the classes to generate an event, for all instances
to reload the underlying xml file whenever any of the instances change
the properties.

Is it possible for a class instance to generate an event so that all
other instances will receive the event?

Regards,

Dave



Relevant Pages

  • Re: String access error in class
    ... configuration data in an ini file. ... But when I include it in a larger project, the constructor throws this error: ... constructor Create; overload; ... IniFile: TIniFile; ...
    (alt.comp.lang.borland-delphi)
  • Re: String access error in class
    ... configuration data in an ini file. ... include it in a larger project, the constructor throws this error: ... IniFile: TIniFile; ... Constructors can be called in either of two ways: on a class reference ...
    (alt.comp.lang.borland-delphi)