May 9, 200421 yr 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
May 22, 200421 yr Author 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?)
May 23, 200421 yr 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..
May 23, 200421 yr Author 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
Create an account or sign in to comment