Jump to content

Back to last database


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

Recommended Posts

  • Newbies

Has anybody a script for this? B)

I have a solution with 30 databases. One of them is the "HELP"-database, where i have all the help messages. In this database it would be nice to have a button that takes you back to the last database you left, before you went to the "HELP"-database.

Thank you very much in advance.

[ February 18, 2002, 04:17 AM: Message edited by: Jan K ]

Link to comment
Share on other sites

You could add a global field PreviousDB (Text)to your help file that is populated when the user clicks the help button from whichever database.

Q. Do you have a constant relationship from each database to the help file ( 1-1 )

If yes you can use the setfield scriptstep from the calling database to

SetField PipeHelp::PreviousDB Status(CurrentFileName)

This will record the file that you were last in.

If not you will have to have a field in each DB that holds the current file name and copy that and paste into the help file.

As for getting back out, you could write a long IF script to check the value of the global field and go to that DB.

This is not dynamic in that each time you add a new file you will have to update the script.

Not sure if Old Man can come up with an easier solution, possibly something dynamic.

Link to comment
Share on other sites

Dan,

So simple, yet missed.

Was in the scripting mode when looking at this post and got carried away. Somehow missed the logical answer when writing. Been here for 10 hours straight now, with my mindset in calculations and relationships.

Oh well, maybe take a break and come back later. Let the brain chill for a while.

quote:


Originally posted by danjacoby:

Just have the "Help" file ToggleWindow(maximize) when it opens. That way, it'll cover all the other windows. When you close it, the file you came from will still be in front.

I like simple solutions, I do.

Link to comment
Share on other sites

This topic is 7187 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
 Share

×
×
  • Create New...

Important Information

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