Re: filemakerpro, go to the next record
Re: filemakerpro, go to the next record
- Subject: Re: filemakerpro, go to the next record
- From: Bruce Robertson <email@hidden>
- Date: Sat, 10 Dec 2005 21:10:51 -0800
>> 1. I have never experienced a need to get the record ID as integer.
>> Merely
>> saying set recID to record ID of current record is good enough.
>> Even though
>> it may display in scientific notation if you ask applescript to
>> show you the
>> record ID that is not how it is actually stored.
> If I try to get the record ID I get it in the scientific notation -
> always.
So what?
Then don't look at it.
You can still USE it exactly as supplied when you ask for it.
The script below works fine as is. If you run this in the applescript script
editor and uncomment the last line, you will see recID displayed in
scientific notation in the result portion of the editor window.
The fact that script editor displays it to you in scientific notation
doesn't mean that's how it is stored. As a matter of fact if you add
"display dialog recID" you will see the result as integer without doing any
explicit coercion. Also, in FileMaker 8 the ID is in fact a number of type
real.
tell application "FileMaker Pro Advanced"
get ID of record -2
set RecID to result
go to record ID RecID
--RecID
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden