AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Probleme beim Zugriff auf Variable

Ein Thema von s.h.a.r.k · begonnen am 27. Apr 2005 · letzter Beitrag vom 27. Apr 2005
Antwort Antwort
Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#1

Probleme beim Zugriff auf Variable

  Alt 27. Apr 2005, 14:09
Hallo! Ich hab zwar grad im Forum gesucht, aber auf die Schnelle nicht gefunden! Ich hoffe, dass diese Thema nocht nicht angsprochen wurde: Und zwar habe ich folgendes Problem: ich habe eine globale Variable wie folgt defeniert:
Delphi-Quellcode:
type
  TMyFont = class
              Name: String;
              Size: Integer;
              Color: TColor;
              Bold: Boolean;
              Italic: Boolean;
              Underline: Boolean;
            end;
  TMyToolbar = class
              Standard: TPoint;
              Explorer: TPoint;
              Syntax: TPoint;
            end;
  TSyntaxHighlighter = (hlFalse, hlCpp, hlPascal, hlHTML, hlPHP, hlJava);

  TAppConfig = class
              Font: TMyFont;
              ShowLineNumber: Boolean;
              WordWarp: Boolean;
              Syntax: TSyntaxHighlighter;
              DocumentName: String;
              ExplorerHeight: Integer;
              ToolBar: TMyToolbar;
            end;

(* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *)

var
  cfg: TAppConfig;
Das funktioniert soweit auch ganz gut, allerdings kann ich nicht auf die Variable zugreifen. Da kommt dann immer ein Zugriffsfehler! warum kann ich eucht nicht sagen... daher hoffe ich, dass einer von euch mir da weiterhelfen kann!
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat
Benutzerbild von chrisw
chrisw

Registriert seit: 11. Jan 2005
Ort: Schleswig
193 Beiträge
 
Delphi XE8 Professional
 
#2

Re: Probleme beim Zugriff auf Variable

  Alt 27. Apr 2005, 14:15
Du suchst sicherlich record und nicht class ! Oder ?
Christian Wahl
me, myself and I, die lustigen Drei !!
  Mit Zitat antworten Zitat
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#3

Re: Probleme beim Zugriff auf Variable

  Alt 27. Apr 2005, 14:15
Hast du die Klasse mit MeineKlasse := TMyClass.Create; erstellt ?
  Mit Zitat antworten Zitat
Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#4

Re: Probleme beim Zugriff auf Variable

  Alt 27. Apr 2005, 14:17
is okey -.- danke! das tut ja fast weh!!! danke
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:24 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz