Tag Archives: TPLCStructItem

Using expressions on TPLCStructItem.Index property

Hi everybody!

Recently, due some difficulties using the project, I implemented a crazy, but very useful idea. What happened was that I needed to add an item to an existing structure. What I should to do was simple: I selected all itens of the last structure, pressed Ctrl+C and then Ctrl+V. But the problem has come when I should to change the Index property of the created TPLCStructItens. Normally I need to select one by one and add the structure size to calculate the Index (offset) of each one. That when it was not necessary to use the calculator to do the calculation. But here is the crazy idea: why not let the IDE to do that? Well. This idea together with TFPExpressionParser page originated the video below:

It’s not ready yet, I have a head full of ideas. What ideas do you have?


Ps. After publish this post, I finished the features showed on this video: