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

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

Recommended Posts

Posted

hello,

i am trying to add a conditional to my startup scripts.

if main.fp5 is NOT open

...show message "Please start from the Main Menu"

...quit application

else

...do normal startup stuff

end if

in other words i cannot have people starting from the clients.fp5 file, they have to start from the main.fp5 file. how do i do this? thanks.

Posted

Make an startup script in clients.fp5 that simply call the stratup from main.

(this will work only if clients is opened in ortodox way, ie double clicking or open step from an other file)

Also you could use design function DatabaseNames to see what dbs are opened

Dj

Posted

well shizam! i never looked into/knew about DatabaseNames. that allows me to determine if the file is open very easily. thanks a lot djgogi!

Posted

Because some operating systems capitalise file names differently to others, the calculation for the IS statement should be something like:

PatternCount(Lower(DatabaseNames), "filename") > 0

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