Announcement

Collapse
No announcement yet.

Format wie in Delphi ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Format wie in Delphi ?

    In C# kann ich einen String doch bestimmt auch wie in Delphi formatieren, oder ?<BR>
    <BR>
    sText = Format('%s %.2M',['Betrag',22.34])<BR>
    <BR>
    Wie würde so ein Format in C# aussehen ?

  • #2
    Sicher: Siehe die folgenden 2 MSDN Artikel:

    <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemstringclassformattopic2.asp">public static string Format(string format, params object[] args);</a>

    <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconFormattingTypes.asp">Formatting Types</a&gt

    Comment


    • #3
      Danke, is ja einfach

      Comment

      Working...
      X