Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.034 Beiträge
 
#1

Delphi trik 1: System.Copy, string a 3. parametr

  Alt 4. Dez 2019, 18:00
Rozhodl jsem se, že zkusím nejakou sérii malých clánku o drobnostech. První bude spíše cástecne nedokumentované chování.

System.Copy

function Copy(S: ; Index: Integer; Count: Integer): string;z helpu:

"When S is a dynamic array, you can omit the Index and Count parameters and Copy copies the entire array."takže

var s: string; s2: string;begin s := 'Hello cool'; s2 := Copy

Weiterlesen...
  Mit Zitat antworten Zitat