Wie UnicodeString::Format verwenden?



  • In der Doku steht

    static __fastcall UnicodeString Format(const UnicodeString& format, const TVarRec * args, int size);

    int value1 = 1;
    int value2 = 2;
    Format("Unit %d = %d", ???);
    

    Wie muss man das formatieren das "Unit 1 = 2" dabei raus kommt? Aus der Hilfe werde ich nicht wirklich schlau.

    In Delphi macht man das so wenn ich mich recht erinnere:

    Format('Unit %d = %d', [value1, value2]);
    


  • Hallo

    Bitte Suchfunktion benutzen! Dieses Thema hatten wir erst vor kurzem hier.

    bis bald
    akari


Anmelden zum Antworten