Re: AS/FMP: a list of fewer than two records
Re: AS/FMP: a list of fewer than two records
- Subject: Re: AS/FMP: a list of fewer than two records
- From: Chap Harrison <email@hidden>
- Date: Fri, 27 Feb 2004 14:01:39 -0600
I'm sorry to be a pain. I just don't get it.
Once you're sure your variable is a list (discussed yesterday--the way
I would tackle it would probably be to initialize the variable as a
list, then copy stuff to the end of it in my loop), you can use:
if ((count theList) > 0) then
-- do your thang
end if
Here's a test program I used.
tell app "Filemaker Pro"
tell database "LineItems"
count of records whose cell "Price" is "*"
end tell
end tell
When the number of qualifying records is 0, there is an "object not
found" error.
Have I missed something here? How can I ask "inoffensively" about the
presence of a record?
Also, about this thing of returning three different classes when there
are zero, one, or more than one thing -- is this behavior specific to
how Filemaker implements the 'whose' clause? Or is it more pervasive?
_______________________________________________
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.