Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   Live-Template für die Format-Funktion (https://www.delphipraxis.net/163663-live-template-fuer-die-format-funktion.html)

Sir Rufo 13. Okt 2011 08:10

AW: Live-Template für die Format-Funktion
 
Du solltest folgendes noch ändern:
Code:
<code language="Delphi" context="methodbody" delimiter="|"><![CDATA[Format('|FormatString||end|',[|Vars|])]]></code>
Live-Templates Technical Info

Wär ja doof, wenn du gerade Variablen oder Methoden deklarieren willst und das Template haut dir die Formatfunktion da rein ;)

Codewalker 13. Okt 2011 08:33

AW: Live-Template für die Format-Funktion
 
Danke für den Hinweis, ist eingebaut.
Solange ich den ersten Beitrag nicht editieren kann, poste ich immer mal wieder die neue Version:

Code:
<?xml version="1.0" encoding="utf-8" ?>
<codetemplate  xmlns="http://schemas.borland.com/Delphi/2005/codetemplates"
            version="1.0.0">
   <template name="forma" invoke="auto">
      <description>Format-Funktionswrapper</description>
      <author>Thomas Hummes</author>
      <point name="FormatString" default="true">
         <text></text>
         <hint>Der Formatstring</hint>
      </point>
      <point name="Vars">
         <text></text>
         <hint>Variablen für die Formatierung</hint>
      </point>
     <code language="Delphi" context="methodbody" delimiter="|"><![CDATA[Format('|FormatString||end|',[|Vars|])]]></code>
   </template>
</codetemplate>
Hat noch einer eine Idee wie man himitsu's Vorschlag umsetzen könnte?


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:23 Uhr.
Seite 2 von 2     12   

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