how can i write an index of an array?
Simba Code:WriteLn(Array[RandomRange(0,ArrayLength)]);
how can i write an index of an array?
Simba Code:WriteLn(Array[RandomRange(0,ArrayLength)]);
Simba Code:var
index: Integer;
TSA: TStringArray;
TIA: TIntegerArray;
begin
index := 2;
TSA := ['hello', 'world', 'foo'];
Writeln('Index of TSA[' + IntToStr(index) + '], string value: ' + TSA[index]);
// or
TIA := [0, 1, 2];
Writeln('Index of TIA[' + IntToStr(index) + '], Integer value: ' + IntToStr(TIA[index]));
end.
i love you lotssss
There are currently 1 users browsing this thread. (0 members and 1 guests)