Jump to content

Recommended Posts

Posted (edited)

I have an array that as an unused row and an unused column: row:0, col:0.

How can I either delete these so that the '3' is at 0,0 or copy this into a new array where the '3' would be the first element.

The 3 with the red circle is the first element needed. Everything in yellow is needed.  White is not needed.

Thanks,

-John

local $frame[13][7]

R2LlupD.png

Edited by jftuga
Posted
Posted

Use UBound's, so if the dims of the driving array change, you won't have to update the rest of your code:

local $frame[13][7]
local $new_frame[UBound($frame)-1][UBound($frame,2)-1]

for $i=0 to UBound($new_frame)-1
    for $j=0 to UBound($new_frame,2)-1
        $new_frame[$i][$j] = $frame[$i+1][$j+1]
    next
next
_ArrayDisplay($new_frame)
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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...