DIM Env(2) Env(0)=5 Env(1)=2 Env(2)=8 REM -- with an array I can also assign values like this... Env()=5,2,8
DIM Env{(2)min,setpoint,max}
Env{(0)}.min=5
Env{(1)}.min=2
Env{(2)}.min=8
REM -- but I can't do the same with a structure.
Env{()}.min=5,2,8
REM -- invokes 'Mistake' error message
But I thought that maybe I just had the syntax wrong or a bracket in the wrong place.
DIM envmin(2)
envmin()=1,2,3
DIM Env{(2)min,sp,max}
FOR i=0 TO 2
Env{(i)}.min=envmin(i)
PRINT Env{(i)}.min
NEXT