I'm confused about this little problem:
When I wire up a empty (size 0) array to the array-inlet of the simple example script, shown below, and an "execute" button to the execute-inlet, it claims that the length of the array is 1.
Here's the script to demonstrate:
Code: Select all
VAR pArray : TParameter;
VAR pExecute : TParameter;
VAR len : integer;
// initialisation : create parameters
PROCEDURE init;
BEGIN
pArray := CreateParam('Array in', ptArray); SetIsOutput(pArray, FALSE);
pExecute := CreateParam('Execute', ptButton); SetIsOutput(pExecute, FALSE);
END;
BEGIN
IF (GetValue (pExecute) = 1) THEN BEGIN
len := GetLength(pArray);
writeln(intToStr(len));
END;Any help much appreciated.
antwan
