How would I do that...?
Its not a static array before anyone calls me dumb.
Nava2
How would I do that...?
Its not a static array before anyone calls me dumb.
Nava2
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
SCAR Code:Procedure RemoveValue(var Arr:TIntegerArray; Index:Integer);
var
I:Integer;
begin
for I:= Index to High(Arr) do
Arr[Index]:=Arr[Index+1];
SetarrayLength(Arr, High(Arr))
end;
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1



Or, if you don't need to keep it in order, this is a faster way:
SCAR Code:procedure RemoveElement(var A: TIntegerArray; Index: Integer);
begin
Swap(A[Index], A[High(A)]);
SetLength(A, High(A));
end;
OOOh! that is clever sexyness!!!
(but .net is cleverer)
~ Metagen
There are currently 1 users browsing this thread. (0 members and 1 guests)