Re: Filemaker found set
Re: Filemaker found set
- Subject: Re: Filemaker found set
- From: Jonathan Bird <email@hidden>
- Date: Wed, 19 Nov 2003 16:48:45 -0600
Hi there,
this is kind of weird. If you use the following, it returns the actual
found count:
tell application "FileMaker Pro"
copy (count record of first document) to recordsFound -- # records
end tell
recordsFound=2 (I had found 2 of 10 records with a search)
but if you structure the script like this, the result is the record
count:
tell application "FileMaker Pro"
tell database "test.fp5"
tell document 1
copy (count record) to recordsFound -- # records
end tell
end tell
end tell
recordsFound = 10
I guess you will have to be carefull of which document is "first
document"... but i tested this with two documents open, had the one I
wanted to count activated, but the script returned the found count of a
second document... Strange one here. Anyone else have any pointers
here.
Hope this helps.
Jonathan B.
On 19-Nov-03, at 3: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.
>
_______________________________________________
>
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.
_______________________________________________
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.