jftuga Posted November 19, 2013 Posted November 19, 2013 (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] Edited November 19, 2013 by jftuga Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
jftuga Posted November 19, 2013 Author Posted November 19, 2013 Actually, this was a lot easier than I thought it would be. local $frame[13][7] local $new_frame[12][6] for $i=0 to 11 for $j=0 to 5 $new_frame[$i][$j] = $frame[$i+1][$j+1] next next _ArrayDisplay($new_frame) Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
jdelaney Posted November 19, 2013 Posted November 19, 2013 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.
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