IEW Posted June 9, 2004 Posted June 9, 2004 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
The Shadow Posted June 9, 2004 Posted June 9, 2004 Does it work okay if you do the find completely manually? What does an example of the find you're doing look like?
DanBrill Posted June 9, 2004 Posted June 9, 2004 Are you searching related fields in other files? It may be that you need to fix the path names.
IEW Posted June 9, 2004 Author Posted June 9, 2004 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.
The Shadow Posted June 9, 2004 Posted June 9, 2004 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
IEW Posted June 9, 2004 Author Posted June 9, 2004 Your example works like a champ. I may die of old age before I learn this program. Please explain the [Get(WindowMode)=1]. TIIvan
The Shadow Posted June 9, 2004 Posted June 9, 2004 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"
Recommended Posts
This topic is 7475 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now