Originally Posted by
bg5
And it doesn't appear on function list. How do you actually know such functions (and other hidden ones) exist ? ;-)
I have only such thing, definition without parameters, so I guess it doesn't work. Maybe there is another name for it too ?
It's the same parameters as the string copy (arr, start, count). It has to parameters in the function list because it's not declared like a regular method (it's magic!).
Simba Code:
aItems.addStrings(['procedure Write(Args: Anything); begin end;',
'procedure WriteLn(Args: Anything); begin end;',
'procedure SetLength(var A: array of Anything; Length: Int32); overload; begin end;',
'procedure SetLength(var S: String; Length: Int32); overload; begin end;',
'function Length(A: array of Anything): Int32; overload; begin end;',
'function Length(S: String): Int32; overload; begin end;',
'function High(A: array of Anything): Int32; overload; begin end;',
'function High(E: Enum): Int32; overload; begin end;',
'function Low(A: array of Anything): Int32; overload; begin end;',
'function Low(E: Enum): Int32; overload; begin end;',
'procedure Insert(Source: Anything; var Dest: array of Source; Index: Int32 = 0); overload; begin end;',
'procedure Insert(Source: String; var Dest: String; Index: Int32 = 1); overload; begin end;',
'procedure Delete(var Source: array of Anything; Index, Count: Int32); overload; begin end;',
'procedure Delete(var Source: String; Index, Count: Int32); overload; begin end;',
'function Copy(Source: array of Anything; Index: Int32 = 0; Count: Int32 = High(Int32)): array of Source; overload; begin end;',
'function Copy(Source: String; Index: Int32 = 1; Count: Int32 = High(Int32)): String; overload; begin end;',
'procedure Swap(var A, B: Anything); begin end;',
'function Inc(var i: Ordinal; Amount: Int32 = 1): Int32; begin end;',
'function Dec(var i: Ordinal; Amount: Int32 = 1): Int32; begin end;']);