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

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

Recommended Posts

Posted

If I have a file with a script that is set to run an external script in another file, is there any type of IF calc that can be used so that if the other external file is not currently open, the external script wont be run?

Right now, if I run the script with the external call, the other file is opened and the external script in that file is run. I only want it to run if the other file is already opened.

LR

Posted

Use

PatternCount (DatabaseNames, "FielName")

so the script coulld look somehow like this

If(PatternCount (DatabaseNames, "FielName"))

Perform Script [External Script]

else

Exit Script

End if

HTH

Dj

smirk.gif

Posted

PatternCount (DatabaseNames, "FieldName")

Did not work. Am I missing some quoation marks?

PatternCount ("DatabaseNames", "FieldName")

LR

Posted

DatabaseNames is the name of the function you'll find in Design Function Section of available functions.

FileName should be the name of the file the presence you want to check.

This could be hardcoded string or it could be passed as an value from the field.

HTH

Dj

Posted

When he wrote "FielName", he didn't mistype "FieldName", he mistyped "FileName".

But what he *meant* was for you to put the name of your file in that spot.

DatabaseNames should not be in quotes... its the name of a built-in function.

This topic is 8071 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.