ACF Library

find_in_arrayInt

Back to List

Description: Look up value in an INT array

FileMaker Prototype:

Set Variable [$res; ACF_Run("find_in_arrayInt"; arrayint_arr;  int_key)]

Category: UTILITY

Function source:

function find_in_arrayInt ( array int arr, int key)
   int i; 
   for ( i = 1, sizeof(arr))
      if ( arr[i] == key) then
         return i; 
      end if
   end for
   return -1; 
end

Back to List