David,
TrainTable[{LVTrainPointer},{LVTrainData}] = LVNewData
Use:
TrainTable{LVTrainPointer}{LVTrainData} = LVNewData
That is, remove [ and ] and the comma.
This works:
LogixNG: IQ:AUTO:0003
ConditionalNG: IQC:AUTO:0003
! A
Many
! A1
Table: For each row of column "Headers" in table "MyTable" set variable "row" and execute action A1
! A1
Table: For each column of row "Headers" in table "MyTable" set variable "col" and execute action A1
! A1
Many
! A1
Digital Formula: data = Table{row}{col}
! A2
Log data: String.format: Table[%s,%s] = %s
! A3
Digital Formula: Table{row}{col} = "Hello: " + data
! A4
Digital Formula: data = Table{row}{col}
! A5
Log data: String.format: Table[%s,%s] = %s
! A6
---
Daniel Bergqvist
JMRI developer
2023-12-08 00:43 skrev David Parks:
LogixNG - How do you make a data assignment to a Global Variable Table
using indirect for row and column?
TrainTable[{LVTrainPointer},{LVTrainData}] = LVNewData
TrainTable Global variable
LVTrainPointer, LVNewData Local variable Integers
David Parks
Links:
------
[1] /g/jmriusers/message/223799
[2] /mt/103045575/5164497
[3] /g/jmriusers/post
[4] /g/jmriusers/editsub/5164497
[5] /g/jmriusers/leave/9097802/5164497/1706973714/xyzzy