Jump to content

Recommended Posts

Posted (edited)

I've done some googling and could not find a function for this. Does anyone know of anything which could do this? I could also write a for loop for this, but I'd rather not resort to that.

Basically, I have:

$temp = StringSplit(StringStripWS(FileReadLine($fin, $i), $STR_STRIPALL), "<>,", 0)

Then, I want to say:

$newArray = $temp[$x] To $temp[$y] ;Pseudocode

E.g. If $temp = ["1", "2", "3", 4"] and I want $newArray to have everything after the 2nd element in $temp.

 

If there is no function for the above, then I'll just resort to using a For loop for reading $temp starting from the 3rd element.

 

I have found a way. AutoIt calls it an extraction: https://www.autoitscript.com/autoit3/docs/libfunctions/_ArrayExtract.htm

Edited by IAMK
Found solution

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...