dbTalk Databases Forums  

Launching a script from a carriage return <cr> or "Enter" key

comp.databases.filemaker comp.databases.filemaker


Discuss Launching a script from a carriage return <cr> or "Enter" key in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark G.
 
Posts: n/a

Default Launching a script from a carriage return <cr> or "Enter" key - 08-01-2003 , 10:55 AM






Hi All,

I have a db I wrote a year ago and I need to tweek some functionality.
I'm running with FM Pro v6.4

Question is:
Can a script be launched from the "Enter" key ?

A text field takes numeric characters like 321104, from here I'd like
<cr>(ie .."Enter" key) and run my script,without leaving the test
field. Currently there is a button (ENTER DATA) that runs the
script, but this seems clunky, to mouse over and click the button.

Can the script launch via "Enter" key be accomplished ?? Any clever
suggestions ??

Thank you in advance.

Mark

Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Launching a script from a carriage return <cr> or "Enter" key - 08-01-2003 , 11:42 AM






Set the field itself as a button to run the script. Add these two steps
to the top of your script:

Go to Field [MyField]
Pause/Resume Script
#the rest of your original script here

This way, click in the field lets the user go into the field and
clicking enter (not 'return', but 'enter') will resume the script and do
what you're already doing.

Note that the script will remain paused until enter is hit. Which means
that if the user goes to another field or layout or anything else, the
script is still paused. Therefore, this method should only be used for
very controlled circumstances.

Mark G. wrote:
Quote:
Hi All,

I have a db I wrote a year ago and I need to tweek some functionality.
I'm running with FM Pro v6.4

Question is:
Can a script be launched from the "Enter" key ?

A text field takes numeric characters like 321104, from here I'd like
cr>(ie .."Enter" key) and run my script,without leaving the test
field. Currently there is a button (ENTER DATA) that runs the
script, but this seems clunky, to mouse over and click the button.

Can the script launch via "Enter" key be accomplished ?? Any clever
suggestions ??

Thank you in advance.

Mark
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California
Associate Member, FileMaker Solutions Alliance



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.