Another Dumb Field Problem!

Lynch, Jonathan bnz2 at cdc.gov
Wed Aug 24 11:47:45 EDT 2005


Oops, made a simple obvious mistake, here is the revised version of that
script:
On tabkey
  Put the short name of the target into tField
  Put word 1 of tField into tFieldName
  Put word 2 of tField 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







More information about the use-livecode mailing list