Einzelnen Beitrag anzeigen

Adrenalin

Registriert seit: 8. Sep 2012
16 Beiträge
 
#17

AW: OmniXML TOmniXMLReader / TOmniXMLWriter

  Alt 9. Sep 2012, 20:19
Hi,

Änder mal deine Klasse so ab:

Delphi-Quellcode:
type
  TAppConf = class(TPersistent)
  private
    FFileName: string;
    FTestPropName: string;
    FTestPropType: TTemplateType;
    FMemoInhalt: TStringList;
  public
     constructor Create(const FileName: string); overload;
     destructor Destroy; override;
     procedure LoadConf(const Filename: string);
     procedure SaveConf(const Filename: string);
     property MemoInhalt: TStringList read FMemoInhalt;
  published
     property TestPropName: string read FTestPropName write FTestPropName;
     property TestType: TTestType read FTestType write FTestType;
     property Filename: string read FFilename write FFilename;
     property MemoText: String read GetMemoText write SetMemoText;
  end;
und in GetMemoText udn SetMemoText gibts Du den Inhalt von FMemoInhalt zurück bzw. setzt diesen

Welche Delphiversion verwendest Du?

Grüße
Wie in beiden?
  Mit Zitat antworten Zitat