I am dynamically creating variables within a DWSUnit as follows:
v := dwsUnit.Variables.Add('c', 'float'); // etc
v.OnWriteVar := writeVar;
v.OnReadVar := readVar;
All variables point to the same event procedure.
The problems is I can't figure out how to determine which variable triggered the event.
The event only gives me a TprogramInfo structure but I can't find anything in it to identify the actual variable.
If I created the variables at design time I could have a seperate event for each variable, but this is not possible when the variables are dynamically created.
Am I missing something here.
I've only just started using DWS and have got most of what I need working great, but I'm stuck here!