June 9, 200421 yr I have just migrated to FM7 and my find scripts dont work. 1. I have a button that I want to get me into find mode. 2. Manually Enter my part no. 3. Continue the the script to Find the part no. I have tried everything but just cannot get it to work. This must be silly simple. Me thinks I havent drained the swamp. TIA IW
June 9, 200421 yr Does it work okay if you do the find completely manually? What does an example of the find you're doing look like?
June 9, 200421 yr Are you searching related fields in other files? It may be that you need to fix the path names.
June 9, 200421 yr Author Manual works fine. My button script is as follows: Enter Find Mode [Pause] Perform Find[] It enters find mode and stops. If I click the continue button on the bar all is ok. I want my Find button to continue the find.
June 9, 200421 yr I couldn't get that script to work the way you seem to be suggesting it did in FM6. The script: If [Get(WindowMode)=1] Perform Find[] Else Enter Find Mode[Pause] Endif allows your button to fire the find off from find mode. See attachment for a simple example. findIt.zip
June 9, 200421 yr Author Your example works like a champ. I may die of old age before I learn this program. Please explain the [Get(WindowMode)=1]. TIIvan
June 9, 200421 yr Get(WindowMode) returns your current state, from the FM Help (which you should avoid at all costs - you never know what sort of crazy [censored] you'll find in there ): "Get(WindowMode) Description Returns a number representing the mode FileMaker Pro is in at the time the function is evaluated: 0 for Browse mode 1 for Find mode 2 for Preview mode 3 if printing is in progress"
Create an account or sign in to comment