AGB  ·  Datenschutz  ·  Impressum  







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

Unit-Aliasnamen

Ein Thema von Christian S. · begonnen am 10. Mai 2004 · letzter Beitrag vom 12. Mai 2004
Antwort Antwort
Benutzerbild von MaBuSE
MaBuSE

Registriert seit: 23. Sep 2002
Ort: Frankfurt am Main (in der Nähe)
1.840 Beiträge
 
Delphi 10 Seattle Enterprise
 
#1

Re: Unit-Aliasnamen

  Alt 12. Mai 2004, 12:22
Zitat von Peter Lustig:
Laut Delphi-Hilfe ist es möglich, Kurznamen für Units einzuführen.
hmmm...,
das habe ich auch in der Hilfe gefunden.
Bei mir funktioniert es auch nicht.

Zitat von Borland delphi.net Hilfe:
Unit aliases

Namespaces can become quite long and cumbersome to type. Delphi for .NET allows you to
declare a local unit alias to introduce an alias for a long namespace.
The following uses clause introduces a local unit alias:
uses MyCompany.AVeryLongNamespaceDesignation.VeryDescriptiveUnitName as aUnit; Given a unit alias, your source code can refer to an identifier by the shorter name:
Delphi-Quellcode:
// These two statements are equivalent.
writeln(aUnit.SomeString);
writeln(MyCompany.AVeryLongNamespaceDesignation.VeryDescriptiveUnitName.SomeString);
Unit aliases must not conflict with other unit or namespace identifiers. Unit aliases introduce Delphi identifiers, and therefore cannot contain dots. A unit alias is local to the unit in which it is declared. A unit alias does not obscure the fully qualified unit name that it aliases; you may always refer to an identifier either by it's fully qualified name, or by a unit alias.
Link dieser Hilfeseite: ms-help://borland.bds2/bds2guide/html/UsingNamespaces.htm
(°¿°) MaBuSE - proud to be a DP member
(°¿°) MaBuSE - proud to be a "Rüsselmops" ;-)
  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 06:15 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz