I like to use same numeric buttons to enter values in different fields when the field is in focus. Also how to accomplish to enter number in the fields I understand the code below but if I need to enter 123 how do I do that thank you
on mouseUp
put "2" into field "number"
end mouseUp
same numeric button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: same numeric button
Hi parsec,
Welcome to the forums!
Change "into" to "after"
also you can drop the quotes around the number.
Simon
Welcome to the forums!
Change "into" to "after"
Code: Select all
on mouseUp
put 2 after field "number"
end mouseUp
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: same numeric button
Thank you Simon
What I like to accomplish is this.
Build a Stack with 3 fields and 10 numeric buttons when a field gets focus I like to enter a numeric value from any of the 10 buttons
J
What I like to accomplish is this.
Build a Stack with 3 fields and 10 numeric buttons when a field gets focus I like to enter a numeric value from any of the 10 buttons
J
Re: same numeric button
Hello parsec.
If i understand correct this is what you need:
this code puts 2 after the field that is currently in focus 
If i understand correct this is what you need:
Code: Select all
on mouseUp
put 2 after the selectedField
end mouseUp

Knowledge is meant to be shared.