On 1 Jul 2017, at 12:12 am, Stephen J. Orth via 4D_Tech <[email protected]> wrote: > > I am getting an array range check error on the following line: > > If (Size of array(as_function)>=1) > > This is a compiled application, so how does this type of error even exist > for this line? > > The details on the error are blank, it simply says: > > Error when executing the method "Get Data Changes" at line #119 > Array Range Check Error > > Anyone know what might result in this issue?
Hey Steve Have you initialised the array somewhere in the current process before using it here? Having a compiler declaration isn't enough - process level arrays have an indeterminate initial state, so Size of array is meaningless until you have explicitly initialised it in your code. For this reason all of our new processes start with a call to Compiler_Arrays. cheers J ********************************************************************** 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:[email protected] **********************************************************************

