Re: Filemaker found set
Re: Filemaker found set
- Subject: Re: Filemaker found set
- From: Gary Lists <email@hidden>
- Date: Wed, 19 Nov 2003 17:40:02 -0500
- Http: //bau2.uibk.ac.at/sg/python/Sounds/HolyGrail.wav/taunt.wav
On or about 11/19/03 4:02 PM, John Dulion wrote:
>
What is the correct verbiage to use only the found set of records
>
within Filemaker.
>
If I have found set of 14 records and 16 total records. My script will
>
repeat through all 16.
>
The script text I am using is:
>
tell application "FileMaker Pro"
>
activate
>
tell database "First-List 0.fp5"
>
tell document 1
>
set recordCount to count of records
>
--script body
>
end tell
>
end tell
>
end tell
>
>
>
I am using OS X 10.2.8, FMP 6.04 and Script Debugger 3.06.
John,
The problem is in your script structure, not the specific use of 'count of
records'. You are telling the wrong thing...or too many things.
Check the FM AS dictionary and you will see that 'database' and 'document'
are not exactly interchangeable, nor do you need them both. (Classes and
elements of classes and all that can be confusing, but it worth examining
the dictionary.)
Here are some various results from a 16 record test file, with 7 records in
the found set. It matters just who you 'tell', as you can see --
-- Your Method
tell application "FileMaker Pro"
tell database 1
tell document 1
count of records
end tell
end tell
end tell
--> 16
tell application "FileMaker Pro"
tell database 1
count of records
end tell
end tell
--> 16
-- And that's true.
tell application "FileMaker Pro"
tell document 1
count of records
end tell
end tell
--> 7
tell application "FileMaker Pro"
count of records
end tell
--> 7
tell application "FileMaker Pro"
tell window 1
count of records
end tell
end tell
--> 7
--
Gary
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.