ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
Statistics: Posted by nay-seven — 14 Jun 2010, 10:16
Statistics: Posted by nay-seven — 11 Jun 2010, 15:58
Statistics: Posted by Clearscreen — 11 Jun 2010, 03:50
Statistics: Posted by nay-seven — 11 Jun 2010, 00:26
Statistics: Posted by 23fx23 — 10 Jun 2010, 23:44
Statistics: Posted by bsork — 10 Jun 2010, 23:32
Statistics: Posted by 23fx23 — 10 Jun 2010, 22:57
CODE:
//////////////////////////// /////////////////////////// parameters declarationvar arrayIn : Tparameter;var arrayOut : Tparameter;// initialisation : create parametersprocedure init;begin ArrayIn := CreateParam('array In',ptArray); SetIsOutput(ArrayIn,false);// ArrayOut := CreateParam('array Out',ptArray); SetIsInput(ArrayOut,false);end;// Callback procedureProcedure Callback(N:integer); begin end;// Global variablesVar I, len: integer;var ArrayTemp : array of single;//////////////////////////////// main proc//////////////////////////////Procedure Process;beginIf GetLength(arrayin)>0 thenbeginLen := GetLength(arrayin);SetLength(ArrayOut, len); SetArrayLength(ArrayTemp,len);For i:= 0 to len-1 do // loop for all indexes BeginArrayTemp[i] := GetDataArrayValue(ArrayIn, i); // store the ith element of ArrayIn to the ith element of ArrayTempSetDataArrayValue(ArrayOut, i, Arraytemp[i]); // send the same element to ArrayOut End; end; end;Statistics: Posted by nay-seven — 10 Jun 2010, 22:48
Statistics: Posted by 23fx23 — 10 Jun 2010, 21:13
CODE:
If GetLength(arrayin)>0 thenbeginCODE:
//////////////////////////// /////////////////////////// parameters declarationvar arrayIn : Tparameter;var arrayOut : Tparameter;// initialisation : create parametersprocedure init;begin ArrayIn := CreateParam('array In',ptArray); SetIsOutput(ArrayIn,false);// ArrayOut := CreateParam('array Out',ptArray); SetIsInput(ArrayOut,false);end;// Callback procedureProcedure Callback(N:integer); beginend;// Global variablesVar I, len: integer;var ArrayTemp : array of single;//////////////////////////////// main proc//////////////////////////////Procedure Process;beginIf GetLength(arrayin)>0 thenbeginLen := GetLength(arrayin);SetLength(ArrayOut, len); For i:= 0 to len-1 do // loop for all indexes BeginArrayTemp[i] := GetDataArrayValue(ArrayIn, i); // store the ith element of ArrayIn to the ith element of ArrayTempSetDataArrayValue(ArrayOut, i, Arraytemp[i]); // send the same element to ArrayOut End; end; end;Statistics: Posted by nay-seven — 10 Jun 2010, 16:25
CODE:
//////////////////////////// /////////////////////////// parameters declarationvar arrayIn : Tparameter;var arrayOut : Tparameter;// initialisation : create parametersprocedure init;begin ArrayIn := CreateParam('array In',ptArray); SetIsOutput(ArrayIn,false);// ArrayOut := CreateParam('array Out',ptArray); SetIsInput(ArrayOut,false);end;// Callback procedureProcedure Callback(N:integer); beginend;// Global variablesVar I, len: integer;var ArrayTemp : array of single;//////////////////////////////// main proc//////////////////////////////Procedure Process;beginLen := GetLength(arrayin);SetLength(ArrayOut, len); For i:= 0 to len-1 do // loop for all indexes BeginArrayTemp[i] := GetDataArrayValue(ArrayIn, i); // store the ith element of ArrayIn to the ith element of ArrayTempSetDataArrayValue(ArrayOut, i, Arraytemp[i]); // send the same element to ArrayOut End; end;Statistics: Posted by nay-seven — 10 Jun 2010, 15:40
Statistics: Posted by bsork — 10 Jun 2010, 13:09
Procedure Process;
begin
if GetLength(ArrayIn) > 0 then //to prevent the procedure running when there's no input
for i := 0 to (len-1) do
Arraytemp := GetDataArrayValue(ArrayIn, i);
SetDataArrayValue(ArrayOut, i, Arraytemp);
end;
Statistics: Posted by Clearscreen — 10 Jun 2010, 12:52
Statistics: Posted by nay-seven — 14 Jun 2010, 10:16
Statistics: Posted by nay-seven — 11 Jun 2010, 15:58
Statistics: Posted by Clearscreen — 11 Jun 2010, 03:50
Statistics: Posted by nay-seven — 11 Jun 2010, 00:26
Statistics: Posted by 23fx23 — 10 Jun 2010, 23:44
Statistics: Posted by bsork — 10 Jun 2010, 23:32
Statistics: Posted by 23fx23 — 10 Jun 2010, 22:57
CODE:
//////////////////////////// /////////////////////////// parameters declarationvar arrayIn : Tparameter;var arrayOut : Tparameter;// initialisation : create parametersprocedure init;begin ArrayIn := CreateParam('array In',ptArray); SetIsOutput(ArrayIn,false);// ArrayOut := CreateParam('array Out',ptArray); SetIsInput(ArrayOut,false);end;// Callback procedureProcedure Callback(N:integer); begin end;// Global variablesVar I, len: integer;var ArrayTemp : array of single;//////////////////////////////// main proc//////////////////////////////Procedure Process;beginIf GetLength(arrayin)>0 thenbeginLen := GetLength(arrayin);SetLength(ArrayOut, len); SetArrayLength(ArrayTemp,len);For i:= 0 to len-1 do // loop for all indexes BeginArrayTemp[i] := GetDataArrayValue(ArrayIn, i); // store the ith element of ArrayIn to the ith element of ArrayTempSetDataArrayValue(ArrayOut, i, Arraytemp[i]); // send the same element to ArrayOut End; end; end;Statistics: Posted by nay-seven — 10 Jun 2010, 22:48
Statistics: Posted by 23fx23 — 10 Jun 2010, 21:13
CODE:
If GetLength(arrayin)>0 thenbeginCODE:
//////////////////////////// /////////////////////////// parameters declarationvar arrayIn : Tparameter;var arrayOut : Tparameter;// initialisation : create parametersprocedure init;begin ArrayIn := CreateParam('array In',ptArray); SetIsOutput(ArrayIn,false);// ArrayOut := CreateParam('array Out',ptArray); SetIsInput(ArrayOut,false);end;// Callback procedureProcedure Callback(N:integer); beginend;// Global variablesVar I, len: integer;var ArrayTemp : array of single;//////////////////////////////// main proc//////////////////////////////Procedure Process;beginIf GetLength(arrayin)>0 thenbeginLen := GetLength(arrayin);SetLength(ArrayOut, len); For i:= 0 to len-1 do // loop for all indexes BeginArrayTemp[i] := GetDataArrayValue(ArrayIn, i); // store the ith element of ArrayIn to the ith element of ArrayTempSetDataArrayValue(ArrayOut, i, Arraytemp[i]); // send the same element to ArrayOut End; end; end;Statistics: Posted by nay-seven — 10 Jun 2010, 16:25
CODE:
//////////////////////////// /////////////////////////// parameters declarationvar arrayIn : Tparameter;var arrayOut : Tparameter;// initialisation : create parametersprocedure init;begin ArrayIn := CreateParam('array In',ptArray); SetIsOutput(ArrayIn,false);// ArrayOut := CreateParam('array Out',ptArray); SetIsInput(ArrayOut,false);end;// Callback procedureProcedure Callback(N:integer); beginend;// Global variablesVar I, len: integer;var ArrayTemp : array of single;//////////////////////////////// main proc//////////////////////////////Procedure Process;beginLen := GetLength(arrayin);SetLength(ArrayOut, len); For i:= 0 to len-1 do // loop for all indexes BeginArrayTemp[i] := GetDataArrayValue(ArrayIn, i); // store the ith element of ArrayIn to the ith element of ArrayTempSetDataArrayValue(ArrayOut, i, Arraytemp[i]); // send the same element to ArrayOut End; end;Statistics: Posted by nay-seven — 10 Jun 2010, 15:40
Statistics: Posted by bsork — 10 Jun 2010, 13:09
Procedure Process;
begin
if GetLength(ArrayIn) > 0 then //to prevent the procedure running when there's no input
for i := 0 to (len-1) do
Arraytemp := GetDataArrayValue(ArrayIn, i);
SetDataArrayValue(ArrayOut, i, Arraytemp);
end;
Statistics: Posted by Clearscreen — 10 Jun 2010, 12:52