Code: Select all
byte ArrayOne[];
byte ArrayTwoLength;
task main()
{
  ArrayTwoLength=ArrayLen(ArrayOne)-3;
  byte ArrayTwo[ArrayTwoLength];
}Code: Select all
byte ArrayOne[];
task main()
{
  byte ArrayTwoLength;
  ArrayTwoLength=ArrayLen(ArrayOne)-3;
  byte ArrayTwo[ArrayTwoLength];
}I want to be able to do something like the following:
Code: Select all
byte ArrayOne[];
task main()
{
  byte ArrayTwoLength=ArrayLen(ArrayOne)-3;
  byte ArrayTwo[ArrayTwoLength];
}Of course, so far I haven't run into a situation where this is really a problem, as there is a workaround. I am just curious as to the reason it must be global.


