Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7475 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

Your example works like a champ. I may die of old age before I learn this program. Please explain the [Get(WindowMode)=1]. TIIvan

Posted

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 wink.gif ):

"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"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.