OK If I read that correctly, that will create the arrays for pass 1 through the loop, but what about creating the arrays for pass 2, and any subsequent passes. I expected to create the arrays, as they were needed, for each pass. something like
For ($i;1;Size of array(EDLBlockArray)) If ($i<10) stringi:="0"+String($i) Else stringi:=String($i) End if FileName:="FileName"+stringi ARRAY TEXT(FileName;0) InfadeMS:="InfadeMS"+stringi ARRAY TEXT(InfadeMS;0) InFadeSamp:="InFadeSamp"+stringi ARRAY TEXT(InFadeSamp;0) OutfadeMS:="OutfadeMS"+stringi ARRAY TEXT(OutfadeMS;0) OutFadeSamp:="OutFadeSamp"+stringi ARRAY TEXT(OutFadeSamp;0) SourceStartMS:="SourceStartMS"+stringi ARRAY TEXT(SourceStartMS;0) SourceStartSamp:="SourceStartSamp"+stringi ARRAY TEXT(SourceStartSamp;0) SourceEndMS:="SourceEndMS"+stringi ARRAY TEXT(SourceEndMS;0) SourceEndSamp:="SourceEndSamp"+stringi ARRAY TEXT(SourceEndSamp;0) DestStartMS:="DestStartMS"+stringi ARRAY TEXT(DestStartMS;0) DestStartSamp:="DestStartSamp"+stringi ARRAY TEXT(DestStartSamp;0) DurationMS:="DurationMS"+stringi ARRAY TEXT(DurationMS;0) DurationSamp:="DurationSamp"+stringi ARRAY TEXT(DurationSamp;0) Gain:="Gain"+stringi ARRAY TEXT(Gain;0) end for but that doesnt work, hence my question -pm On Tue, Oct 31, 2017 at 7:47 PM, npdennis <npden...@greatext.com> wrote: > And How do I create the Arrays in the First Place > > > If you are running compiled you I think will need to type the arrays in a > method someplace so the compiler knows about the arrays. I know that some > variable types don’t need compiler declarations, but I think arrays do. > > // Some method maybe a COMPILER_ARRAY method > Array text (array1;0) > Array text (array2;0) > Array text (array3;0) > Array text (array4;0) > // add the arrays you will use here > > > > // Method to assign the arrays > > $p:=Get Pointer(“array”+string($1)) // assuming you pass in the array > number such as one > > // Then use the pointer -> wherever you would use the array > > Array Text($p->;20) > $p->{1}:=“One" > > // Or maybe something like > > Selection To Array([Table]Field;$p->) > > > > Neil > > > -- > Neil Dennis > 4D Developer since 1990 > > > ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************