Posted: 03 Mar 2015, 13:55
Hello Everyone!
Sorry for Topic confusion I meant to say Array of Tparameter:
So I am running into an interesting problem.
I have an Array of Tparameter , and I am wanting to control by a Callback event referring to the name.
As example:
var pad : array [0..15] of Tparameter;
procedure callback (n:integer);
Begin
Case n of
pad0 :
pad1 :
etc..
It seems like the compiler does not understand that pad0 is a real Tparameter, because the iteration to create happens in the init procedure.
At least this is what I am assuming.
I was hoping to refer by name, as in previous scripts I have always had problems where I had to add another parameter and had to adjust the
entire callback procedure respectively to match the IO number.
Am I doing something wrong? Is there a different way to approach?
If this is the case, I guess it would probably be beneficial to update the compiler to accept that a Tparameter is an array of a specified length.
-S
Sorry for Topic confusion I meant to say Array of Tparameter:
So I am running into an interesting problem.
I have an Array of Tparameter , and I am wanting to control by a Callback event referring to the name.
As example:
var pad : array [0..15] of Tparameter;
procedure callback (n:integer);
Begin
Case n of
pad0 :
pad1 :
etc..
It seems like the compiler does not understand that pad0 is a real Tparameter, because the iteration to create happens in the init procedure.
At least this is what I am assuming.
I was hoping to refer by name, as in previous scripts I have always had problems where I had to add another parameter and had to adjust the
entire callback procedure respectively to match the IO number.
Am I doing something wrong? Is there a different way to approach?
If this is the case, I guess it would probably be beneficial to update the compiler to accept that a Tparameter is an array of a specified length.
-S