5 Replies Latest reply on Aug 27, 2010 5:07 PM by ChrisKnight

    Building a list from a found set within a script?

    ChrisKnight

      Title

      Building a list from a found set within a script?

      Post

      Hi,

      I would love some expert Filemaker Guru advice.

      I need to build a list from a found set from within a script and then make the list the exit value of the script.  I am wondering what the best way to do this is.

      What I have been thinking basically goes,

      Perform Find

      Go To Record [First]

      Loop

      Set Variable ($vList ; Table::Field) 

      Go To Record [Next; Exit after Last]

      End Loop

      Exit Script [Result : $vList]

      I have not yet tried though so I don't even know if my thoughts would work yet, but as I was thinking them I was also thinking there has got to be a better way.

      Thank you kindly in advance,

      ~Chris