Colm
No need for invisible fields for portal/list navigation if you use
OnLayoutKeystroke rather than OnObjectKeystoke- change the If step to
If (IsEmpty ( Get ( ActiveFieldName ) ) and Abs ( $plusmin ) = 1
then do a Goto Portal Row or Goto Record by calculation step
(or something like that)
[When you start combining different triggers on the same layout and/or
object you need to be aware of the order in which they get fired]
cheers
Tom
On 31 Oct 2009, at 19:28, Colm Osiris wrote:
> Thanks to Mark, Trish and Lorne.
>
> That's brilliant. I somehow hadn't come across 'Get
> ( TriggerKeystroke )'.
>
>> Set Variable ( $plusmin ; Value: 30 - Code ( Get
>> ( TriggerKeystroke ) ) // code for up-arrow is 29, down-arrow is 31
>> If Abs ( $plusmin = 1 )
>
> // it took a while to realise that the bracket on the last line
> should be before the equals :-) Before that, the up arrow would
> work, but not the down arrow.
>
>> Set Field ( Get ( ActiveFieldContents ) + $plusmin
>> End If
>
> That's exactly what I needed, and potentially more, as well. In a
> list of records, or a portal, I can use these keys to go up and down
> the list, too. I think. Probably involving an invisible field or
> something.
>
> Colm
> _______________________________________________
> FMPexperts mailing list
>
[hidden email]
>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au>
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au