Another Dumb Field Problem!

Lynch, Jonathan bnz2 at cdc.gov
Wed Aug 24 11:18:48 EDT 2005


I just adapted this from a more complex version of a script that does
what you want, so it is not really tested, but should work. Email me
directly if it does not work, and I will fix it.

Lettuce say that you name your fields as follows:

Field 1 - "myField 1"
Field 2 - "myField 2"
Field 3 - "myField 3"

Then put the following script in your group

On tabkey
  Put the short name of the target into tField
  Put word 1 of tField into tFieldName
  Put word 2 of tFieldName into tFieldNumber
  If the shiftkey is down then
   If tFieldNumber > 1 then
     Subtract 1 from tFieldNumber
   Else
     Put the number of fields in me into tFieldNumber
   End if
  Else if the commandkey is down then
    If the selectedfield <> empty then
      Put Tab into the selection
      Exit tabkey
    End if
  Else
    If tFieldNumber < the number of fields in me then
      Add 1 to tFieldNumber
    Else
      Put 1 into tFieldNumber
    End if
  End if
  Put tFieldName && tFieldNumber into tNewField
  Select char 1 to -1 of field tNewField of me
End tabkey


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of David
Burgun
Sent: Wednesday, August 24, 2005 11:02 AM
To: How to use Revolution
Subject: Another Dumb Field Problem!

Hi,

How can I control where the Tab Key navigates to?

I just want the tab key to move from one field to the next *within* a 
group, e.g.

Group A
Field 1 tab ----> Field 2 tab -----> Field 3 tab -----> Field 1  (if 
there are 3 fields)

Group B
Field 1 tab ----> Field 2 tab -----> Field 1  (if there are 2 fields)

Thanks a lot
Dave
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list