cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Forward Migration - Arrays

DGSketcher
Champion

In an old GDL object I have values stored in a 10 x 8 parameter arrNameA. I want to extract the values in columns 6 & 7 e.g. arrNameA [#][6] into a new parameter array arrNameB in the new object. Is it possible to split these values out in the migration script? 

 

Hoping this will work...

 

!!!FORWARD MIGRATION SCRIPT

DIM arrNull2[][], arrTemp[][]
arrNull2[1][1] = 0.00

xx = STORED_PAR_VALUE ("arrNameA", arrTemp)				
IF xx THEN
   FOR n = 1 TO VARDIM1(arrTemp)
	arrNameB[n][1] = arrTemp[n][6]
	arrNameB[n][2] = arrTemp[n][7]
    NEXT n

arrTemp = arrNull2
PARAMETERS arrNameB = arrNameB

ENDIF

 

 

Apple iMac macOS Ventura / AC26UKI (most recent builds)
0 REPLIES 0

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!