Increment Variable - Not Able to Reference ft Element?


#1

I have the following command:

IncrementVariable(ftStatistics_AF[12]);

I am getting the error for invalid variable type in argument 0, yet the command reference lists a Float Variable as a valid argument. Are float tables off limits for this? I’m not seeing why it would be so, though I do understand tables do have certain limits inherent to them. Is there a sort of de-referencing operator similar to how you treat pointer tables that I can use to show the function that what I’m trying to point it to is a valid float?


#2

Increment isn’t supported for tables - so as you probably know, ftStatistics_AF[12] = ftStatistics_AF[12] + 1.0; is what you will need to do.


#3

Thanks for the confirmation :slight_smile: