kevilay2017 Posted June 8, 2017 Share Posted June 8, 2017 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 $Item0=0 $Item1=1 $Item1=2 $Indexer=0 While1 MsgBox(1,$Item[$indexer] ,$Item[$indexer]) $indexer = $indexer + 1 Wend 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. Link to comment Share on other sites More sharing options...
Danyfirex Posted June 8, 2017 Share Posted June 8, 2017 Hello. Check Arrays in Help File. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Subz Posted June 8, 2017 Share Posted June 8, 2017 Basic example: ;~ Declare variable as an array Local $Item[3] ;~ Add value to each item in the array $Item[0]=0 $Item[1]=1 $Item[2]=2 For $i = 0 To UBound($Item) - 1 MsgBox(1,$Item[$i] ,$Item[$i]) Next Link to comment Share on other sites More sharing options...
kevilay2017 Posted June 11, 2017 Author Share Posted June 11, 2017 This Is great thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now