AGB  ·  Datenschutz  ·  Impressum  







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

Inherited Forms...

Ein Thema von FaNIX · begonnen am 6. Feb 2008 · letzter Beitrag vom 6. Feb 2008
Antwort Antwort
FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#1

Inherited Forms...

  Alt 6. Feb 2008, 06:20
I have a form, which doesn't have a lot of code in it, just the basic code that will be used on all forms inside my application. I want to use this form as BASE, and inherit from it when creating new forms, now this works, as you can only select New Unit, and select the inherited form to create one.

My question is: Inside my base form, i included 2 units, which contains common functions that will be used throughout the application. Now when I include these units inside my Base Form, I do have access to all it's the methods inside the included units, but inside my inherited forms, I can't access these methods, am I doing something wrong?
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: Inherited Forms...

  Alt 6. Feb 2008, 06:28
You also must add this units to the unit of the inherited forms.
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#3

Re: Inherited Forms...

  Alt 6. Feb 2008, 10:44
As said before: the uses statement is not inherited (like in C++ the preprocessor include's)
  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 08:44 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