see below. -- Steve Steve B. Gerow FileMaker 8/7 Certified Developer
President Abrazos Data Consulting, Inc. Dependable Database Development Pasadena California www.abrazosdata.com Member FileMaker Bus. Alliance > From: Bill Kasper <[EMAIL PROTECTED]> > Reply-To: FileMaker Pro Discussions <[email protected]> > Date: Mon, 4 Jun 2007 15:19:31 -0700 > To: [email protected] > Subject: Re: counting unique values from all values in a found set > > ok, steve, i am trying just this, and have the following in the table > "Press Schedule": > > workordernumber, a number field, indexed > list_ordernumvallist, a text field, global storage > count_ordernumsfromvallist, a number field (not indexed or global) > > the following script is called from within the script that finds and > sorts the records (for a given date range): > > Set Field [Press Schedule::list_ordernumvallist; ValueListItems > ("Press Schedule" ; "ordernumvallist")] > Set Field [Press Schedule::count_ordernumsfromvallist; [use ValueCount function here instead of Count] > Count ( Press > Schedule::count_ordernumvallist )] > > and, if i call it from within the other script, of just manually > perform a find and run this script above (i assume it operates on > whatever found set is in the database), it shows nothing for > list_ordernumvallist, and counts (appropriately enough) "0" for > count_ordernumsfromvallist. > > suggestions? > > thanks again, > best, > bill > > On Jun 4, 2007, at 2:20 PM, Steve B. Gerow wrote: > >> bill, >> This may help: >> Index the field and make a value list from it. Do the following in >> a script: >> Use the ValueListItems function to set the list into a global. >> Use the ValueCount function to count the items in the global. >
