Jump to content

Indirect Address A Variable

Recommended Posts

Hello Guys, What im trying to do is write a script that is doing the same thing  but with a bunch of different variables. Here is a rough example. I dont know how to indirectly address the variable


MsgBox(1,$Item[$indexer] ,$Item[$indexer])
$indexer = $indexer + 1

Basically everytime the indexer indexes, it would be looking at a different item variable. I know how to do this with PLCs, but not with this type of code. In PLC 's we call this indirect addressing. 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...