RDecker Posted May 9, 2004 Posted May 9, 2004 I'm using a script to control access to a data-only file to insure that data is entered through the interface file. If a user opens the data file instead of the interface file, they find a blank layout with a brief explanation and a button to take them to the interface file. The script for this button is in the interface file, not the data file. Since I have several such data files (each storing quite different info used by different persons for different purposes), I'd prefer to have only one such script to keep track of in the interface file. So my question, Is it possible to specify that the file from which the script was called (via button click) be closed *without designating the name of the file*? I can do it easily if I specify the name of the data file, but then I must have a separate script for each such file. The "close [current] file" option references the *interface* file, so I assume that will not work. Thanks, decker
RDecker Posted May 22, 2004 Author Posted May 22, 2004 I've never gotten any reply on this, nor figured out the answer myself. Any suggestions? (Is it clear what I'm trying to do?)
bruceR Posted May 23, 2004 Posted May 23, 2004 That's what script parameters are for. If you look at the button definition, there is a place to put script parameters. You would enter get(Filename). This get passed to the calling script. Then you main script would say, if script parameter = this, do that..
RDecker Posted May 23, 2004 Author Posted May 23, 2004 BruceR said: That's what script parameters are for. If you look at the button definition, there is a place to put script parameters. You would enter get(Filename). This get passed to the calling script. Then you main script would say, if script parameter = this, do that.. Hmm. I'm glad to know there's a way to do it... but I've tried several different things to figure out your suggestion, but to no effect. I'm obviously missing something or not understanding this. Could you (or someone) spell this out in more detail. I'd appreciate it much. decker
Recommended Posts
This topic is 7492 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