I have two simple fields, FieldA and FielldB using only 12 lines each.
I want to enter data line by line in FieldA with each data entry using the Keypad "Enter" Key to advance the cursor to the next line.
When I've made 12 entries into FieldA, I want the cursor to advance to line one FieldB.
Any help appreciated.
Key Pad Data Entry
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
Ralph Forehand
- Livecode Opensource Backer

- Posts: 42
- Joined: Thu Jan 04, 2007 8:05 pm
-
Mark Smith
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact:
in the script of fld A
Though you might want to trap returnInField, as well, so something like
Best,
Mark
Code: Select all
on enterInField
if the number of lines in me >= 12 then
select before fld "B"
else
pass enterInField
end if
end enterInfieldCode: Select all
on enterInField
checkReturns
end enterInField
on returnInField
checkReturns
end returnInField
on checkReturns
if the number of lines in me >= 12 then
select before fld "B"
else
put cr after me
end if
end checkReturnsMark
-
Ralph Forehand
- Livecode Opensource Backer

- Posts: 42
- Joined: Thu Jan 04, 2007 8:05 pm